mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-09-08 10:10:05 +00:00
dhcp: Fix dhcp_fine_tmr() not to use netif after free
Introduced in 86df9f44
This commit is contained in:
@@ -1472,6 +1472,7 @@ dhcp_release_and_stop(struct netif *netif)
|
|||||||
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
|
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_DHCP_AUTOIP_COOP */
|
#endif /* LWIP_DHCP_AUTOIP_COOP */
|
||||||
|
ESP_LWIP_DHCP_FINE_CLOSE(netif, dhcp);
|
||||||
|
|
||||||
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_release_and_stop(): dhcp state is OFF\n"));
|
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_release_and_stop(): dhcp state is OFF\n"));
|
||||||
if (dhcp->pcb_allocated != 0) {
|
if (dhcp->pcb_allocated != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user