mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-12 13:13:21 +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 */
|
/* remember offered lease */
|
||||||
dhcp_handle_offer(netif);
|
dhcp_handle_offer(netif);
|
||||||
}
|
}
|
||||||
|
|
||||||
free_pbuf_and_return:
|
free_pbuf_and_return:
|
||||||
dhcp->msg_in = NULL;
|
if(dhcp != NULL) {
|
||||||
|
dhcp->msg_in = NULL;
|
||||||
|
}
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user