From b844d25f9552591ad6d6e5077ea79f1ff312331b Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sun, 26 Nov 2023 15:12:00 +0100 Subject: [PATCH] TFTP Forgot to deinit tftp on failiure of init --- project/Core/Src/tftp.c | 1 + 1 file changed, 1 insertion(+) 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");