mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
Fixed memory leak in ssh_is_server_known()
This commit is contained in:
committed by
Andreas Schneider
parent
918a912cd5
commit
ae3bb42da5
@@ -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