From 4e4ed4bfd4637301ee47071dcb0c027c052912e5 Mon Sep 17 00:00:00 2001 From: Feten Besbes Date: Wed, 11 Apr 2018 15:08:42 +0100 Subject: [PATCH] Ticket refs #14061 : DNSServers reports via TR069 blank/empty value --- dm/dmtree/tr098/landevice.c | 3 +++ dm/dmtree/tr181/dhcp.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dm/dmtree/tr098/landevice.c b/dm/dmtree/tr098/landevice.c index 177f523..75df1d9 100644 --- a/dm/dmtree/tr098/landevice.c +++ b/dm/dmtree/tr098/landevice.c @@ -581,6 +581,9 @@ int get_lan_dns(char *refparam, struct dmctx *ctx, char **value) p++; } } + if ((*value)[0] == '\0') { + dmuci_get_value_by_section_string(lanargs->ldlansection, "ipaddr", value); + } return 0; } diff --git a/dm/dmtree/tr181/dhcp.c b/dm/dmtree/tr181/dhcp.c index 61cf83a..1f6a1f5 100644 --- a/dm/dmtree/tr181/dhcp.c +++ b/dm/dmtree/tr181/dhcp.c @@ -157,6 +157,9 @@ int get_dns_server(char *refparam, struct dmctx *ctx, char **value) p++; } } + if ((*value)[0] == '\0') { + dmuci_get_option_value_string("network", cur_dhcp_args.interface, "ipaddr", value); + } return 0; }