mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-06-05 21:04:45 +00:00
sntp: Fix client receive KOD packet that make pool MEMP_SYS_TIMEOUT not be freed
Reported as https://savannah.nongnu.org/bugs/?58817 picked from espressif/esp-lwip@1c1642fe Ref IDF-4847
This commit is contained in:
@@ -528,6 +528,7 @@ sntp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr,
|
||||
/* KOD errors are only processed in case of an explicit poll response */
|
||||
if (sntp_opmode == SNTP_OPMODE_POLL) {
|
||||
/* Kiss-of-death packet. Use another server or increase UPDATE_DELAY. */
|
||||
sys_untimeout(sntp_request, NULL);
|
||||
sntp_try_next_server(NULL);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user