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

By Jens Nielsen
This commit is contained in:
Dirk Ziegelmeier 2018-05-21 09:27:31 +02:00
parent 11c294e973
commit d996d0f486

View File

@ -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));
}