diff --git a/project/Core/Src/tftp.c b/project/Core/Src/tftp.c index e1d8f53..87c2d1b 100644 --- a/project/Core/Src/tftp.c +++ b/project/Core/Src/tftp.c @@ -299,6 +299,7 @@ void tftp_server_init(void) { // Init the tftp server if (tftp_init(&tftpContext_s) != ERR_OK) { LOG_FATAL(TAG, "Could not initialize tftp server"); + tftp_server_deinit(); return; } LOG_INFO(TAG, "tftp server initialized successfully");