mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
dhcpc: codechecker issuse fix
presult->serverid.s_addr maybe is garbage or undefined Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
cfb64cffb1
commit
f6ab04addb
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue