TFTP
Forgot to deinit tftp on failiure of init
This commit is contained in:
@@ -299,6 +299,7 @@ void tftp_server_init(void) {
|
|||||||
// Init the tftp server
|
// Init the tftp server
|
||||||
if (tftp_init(&tftpContext_s) != ERR_OK) {
|
if (tftp_init(&tftpContext_s) != ERR_OK) {
|
||||||
LOG_FATAL(TAG, "Could not initialize tftp server");
|
LOG_FATAL(TAG, "Could not initialize tftp server");
|
||||||
|
tftp_server_deinit();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG_INFO(TAG, "tftp server initialized successfully");
|
LOG_INFO(TAG, "tftp server initialized successfully");
|
||||||
|
|||||||
Reference in New Issue
Block a user