Skip to content

Commit 8c0e419

Browse files
committed
Merge branch 'bugfix/N8266-67' into 'master'
fix: It sometimes crashes after disable sntp See merge request sdk/ESP8266_NONOS_SDK!281
2 parents f537843 + 13e436f commit 8c0e419

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ phy:
1717
gitlab:
1818
driver : 5a2a54b4
1919
json : f55d5fee
20-
lwip : 5c01bdee
20+
lwip : 5623f48f
2121
mbedtls : 82b93fe5
2222
smartconfig : ea1d4a13(v2.5.5)

lib/liblwip.a

68 Bytes
Binary file not shown.

third_party/lwip/core/sntp.c

+4
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,10 @@ sntp_dns_found(const char* hostname, ip_addr_t *ipaddr, void *arg)
919919
LWIP_UNUSED_ARG(hostname);
920920
LWIP_UNUSED_ARG(arg);
921921

922+
if (sntp_pcb == NULL) {
923+
return;
924+
}
925+
922926
if (ipaddr != NULL) {
923927
/* Address resolved, send request */
924928
LWIP_DEBUGF(SNTP_DEBUG_STATE, ("sntp_dns_found: Server address resolved, sending request\n"));

0 commit comments

Comments
 (0)