mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 02:39:15 +00:00
dhcp_inform(): netif->dhcp pointed to unallocated memory when udp_new() failed
This commit is contained in:
parent
b7d7559cc9
commit
ec97fbd101
@ -680,6 +680,7 @@ dhcp_inform(struct netif *netif)
|
||||
if (dhcp->pcb == NULL) {
|
||||
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | 2, ("dhcp_inform(): could not obtain pcb"));
|
||||
mem_free((void *)dhcp);
|
||||
netif->dhcp = old_dhcp;
|
||||
return;
|
||||
}
|
||||
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_inform(): created new udp pcb\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user