From 3453cafd95c7055f2c4af4a65878c1c3c8adb59a 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 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; }