mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
fixed bug #36645: Calling dhcp_release before dhcp_start dereferences NULL
This commit is contained in:
parent
b82bca7c99
commit
bab8c82a35
@ -80,6 +80,10 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2012-08-13: Simon Goldschmidt
|
||||
* dhcp.c: fixed bug #36645: Calling dhcp_release before dhcp_start
|
||||
dereferences NULL
|
||||
|
||||
2012-08-13: Simon Goldschmidt
|
||||
* msg_out.c: fixed bug #36840 snmp_send_trap() NULL de-reference if traps
|
||||
configured but no interfaces available
|
||||
|
@ -1164,6 +1164,9 @@ dhcp_release(struct netif *netif)
|
||||
err_t result;
|
||||
u16_t msecs;
|
||||
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release()\n"));
|
||||
if (dhcp == NULL) {
|
||||
return ERR_ARG;
|
||||
}
|
||||
|
||||
/* idle DHCP client */
|
||||
dhcp_set_state(dhcp, DHCP_OFF);
|
||||
|
Loading…
Reference in New Issue
Block a user