mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-11 10:13:48 +00:00
Fix bug #47805: dhcp_recv can dereference NULL pointer
This commit is contained in:
parent
2e05856f90
commit
49badf39a1
@ -1737,8 +1737,11 @@ dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr,
|
||||
/* remember offered lease */
|
||||
dhcp_handle_offer(netif);
|
||||
}
|
||||
|
||||
free_pbuf_and_return:
|
||||
dhcp->msg_in = NULL;
|
||||
if(dhcp != NULL) {
|
||||
dhcp->msg_in = NULL;
|
||||
}
|
||||
pbuf_free(p);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user