aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}