From 85ca28b8a9b6a632d1c898ff3e69d2a600838d52 Mon Sep 17 00:00:00 2001 From: yuanjm Date: Mon, 21 Jun 2021 14:37:21 +0800 Subject: [PATCH] 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 --- src/apps/sntp/sntp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/sntp/sntp.c b/src/apps/sntp/sntp.c index 0e7f3652..315aa949 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -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 {