summaryrefslogtreecommitdiffstats
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-21 10:03:13 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-21 10:03:13 +0200
commit3453cafd95c7055f2c4af4a65878c1c3c8adb59a (patch)
tree63fd2e87c77600265018c153cf000ddf12968c0a /libssh
parentfa65fd3dd1168247aefe0acef275f781ccdc2ccb (diff)
keyfiles: Fixed possible problem with known_hosts path.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/keyfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index 7a738e91..31def3db 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -1687,7 +1687,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;
}