We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents adf9ee2 + 1833aa4 commit 7b40b23Copy full SHA for 7b40b23
components/tcpip_adapter/tcpip_adapter_lwip.c
@@ -303,7 +303,7 @@ static void tcpip_adapter_dhcpc_done(TimerHandle_t xTimer)
303
304
xTimerStop(dhcp_check_timer, 0);
305
if (netif_is_up(esp_netif[TCPIP_ADAPTER_IF_STA])) {
306
- if (clientdhcp->state == DHCP_STATE_BOUND
+ if ((clientdhcp && clientdhcp->state == DHCP_STATE_BOUND)
307
#if LWIP_IPV4 && LWIP_AUTOIP
308
|| (autoip && autoip->state == AUTOIP_STATE_ANNOUNCING)
309
#endif
0 commit comments