diff --git a/netutils/dhcpc/dhcpc.c b/netutils/dhcpc/dhcpc.c index eb5be2f43..92f484364 100644 --- a/netutils/dhcpc/dhcpc.c +++ b/netutils/dhcpc/dhcpc.c @@ -696,6 +696,8 @@ int dhcpc_request(FAR void *handle, FAR struct dhcpc_state *presult) int state; clock_t start; + memset(presult, 0, sizeof(*presult)); + /* RFC2131: For example, a client may choose a different, * random initial 'xid' each time the client is rebooted, and * subsequently use sequential 'xid's until the next reboot.