aboutsummaryrefslogtreecommitdiff
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:08:26 +0200
commit421fb2a829307dc67ec7e15c028bc1b07ed1a77e (patch)
tree9bf46e1e9756c56be2790abdd778045b6a4aa431 /libssh
parent517e58d3dc13b16d6896de2eccc8a28d9604a708 (diff)
downloadlibssh-421fb2a829307dc67ec7e15c028bc1b07ed1a77e.tar.gz
libssh-421fb2a829307dc67ec7e15c028bc1b07ed1a77e.tar.xz
libssh-421fb2a829307dc67ec7e15c028bc1b07ed1a77e.zip
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 f4c03e5..8092b3a 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -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;
}