From d996d0f4866a563dfb7d6bf83e93f77ab5f0f30c Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 21 May 2018 09:27:31 +0200 Subject: [PATCH] Apply patch #9629: tftp_cleanup() should clean up more By Jens Nielsen --- src/apps/tftp/tftp_server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/tftp/tftp_server.c b/src/apps/tftp/tftp_server.c index 57018bd5..e3f15124 100644 --- a/src/apps/tftp/tftp_server.c +++ b/src/apps/tftp/tftp_server.c @@ -428,6 +428,7 @@ void tftp_cleanup(void) { LWIP_ASSERT("Cleanup called on non-initialized TFTP", tftp_state.upcb != NULL); udp_remove(tftp_state.upcb); + close_handle(); memset(&tftp_state, 0, sizeof(tftp_state)); }