Ver Fonte

Apply patch #9629: tftp_cleanup() should clean up more

By Jens Nielsen
Dirk Ziegelmeier há 7 anos atrás
pai
commit
d996d0f486
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/apps/tftp/tftp_server.c

+ 1 - 0
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));
 }