netutils/dhcpd : trivial patch, add debug log on dhcp discover
This commit is trivial patch, add debug log on dhcp discover
- fix static analysis result, UNCHECKED_FUNC_RES.LIB.STRICT
@@ -1635,7 +1635,9 @@ int dhcpd_run(void *arg)
switch (g_state.ds_optmsgtype) {
case DHCPDISCOVER:
ndbg("DHCPDISCOVER\n");
- dhcpd_discover();
+ if (dhcpd_discover() == ERROR) {
+ ndbg("DHCPDISCOVER : Failed to send DHCP Discover, errno %d\n", errno);
+ }
break;
case DHCPREQUEST:
