This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 6b9d51793 Fix error caused by netinit code assuming CONFIG_NETINIT_DNS
was enabled
6b9d51793 is described below
commit 6b9d51793f7373e3c48d4590a368ab8b8f42e61e
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Sat Jul 6 15:40:33 2024 -0300
Fix error caused by netinit code assuming CONFIG_NETINIT_DNS was enabled
Signed-off-by: Alan C. Assis <[email protected]>
---
netutils/netinit/netinit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c
index 2f4d0a78d..bb5d8e87c 100644
--- a/netutils/netinit/netinit.c
+++ b/netutils/netinit/netinit.c
@@ -689,10 +689,12 @@ static void netinit_net_bringup(void)
netlib_set_dripv4addr(NET_DEVNAME, &ds.default_router);
}
+# ifdef CONFIG_NETINIT_DNS
if (ds.dnsaddr.s_addr != 0)
{
netlib_set_ipv4dnsaddr(&ds.dnsaddr);
}
+# endif
}
dhcpc_close(handle);