Forgot to deinit tftp on failiure of init
This commit is contained in:
2023-11-26 15:12:00 +01:00
parent 17316a8283
commit b844d25f95

View File

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