From 421fb2a829307dc67ec7e15c028bc1b07ed1a77e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 21 May 2010 10:03:13 +0200 Subject: [PATCH] keyfiles: Fixed possible problem with known_hosts path. --- libssh/keyfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index f4c03e5e..8092b3ac 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; }