dhcp: Fix dhcp_fine_tmr() not to use netif after free

Introduced in 86df9f44
This commit is contained in:
xueyunfei
2023-03-09 16:26:06 +08:00
parent 9e62afffb4
commit d5e56d0665
+1
View File
@@ -1472,6 +1472,7 @@ dhcp_release_and_stop(struct netif *netif)
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
}
#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"));
if (dhcp->pcb_allocated != 0) {