sntp: Fix KOD packet reception causing MEMP_SYS_TIMEOUT pool not be freed

e8c46a56 sntp: Fix client receive KOD packet that make pool MEMP_SYS_TIMEOUT not be freed
This commit is contained in:
yuanjm
2024-09-10 16:44:20 +02:00
committed by David Cermak
parent 5861ff08f3
commit 85ca28b8a9
+1
View File
@@ -546,6 +546,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_kod_try_next_server(NULL);
}
} else {