mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09: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