Skip to content

Commit

Permalink
sntp: Fix client receive KOD packet that make pool MEMP_SYS_TIMEOUT n…
Browse files Browse the repository at this point in the history
…ot be freed

Reported as https://savannah.nongnu.org/bugs/?58817
picked from 1c1642fe
Ref IDF-4847
  • Loading branch information
ESP-YJM authored and david-cermak committed Aug 16, 2022
1 parent 9247429 commit e8c46a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/sntp/sntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e8c46a5

Please sign in to comment.