mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-09-04 04:42:09 +03:00
Fixed memory leak in ssh_is_server_known()
This commit is contained in:
@@ -1418,6 +1418,8 @@ int ssh_is_server_known(SSH_SESSION *session) {
|
||||
/* We override the status with the wrong key state */
|
||||
ret = SSH_SERVER_KNOWN_CHANGED;
|
||||
}
|
||||
} else {
|
||||
tokens_free(tokens);
|
||||
}
|
||||
} while (1);
|
||||
|
||||
|
Reference in New Issue
Block a user