1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-10 06:23:01 +03:00

keyfiles: Fixed possible problem with known_hosts path.

This commit is contained in:
Andreas Schneider
2010-05-21 10:03:13 +02:00
parent 517e58d3dc
commit 421fb2a829

View File

@@ -1725,7 +1725,7 @@ int ssh_write_knownhost(ssh_session session) {
}
if (session->knownhosts == NULL) {
if (ssh_options_set(session, SSH_OPTIONS_KNOWNHOSTS, NULL) < 0) {
if (ssh_options_apply(session) < 0) {
ssh_set_error(session, SSH_FATAL, "Can't find a known_hosts file");
return -1;
}