summaryrefslogtreecommitdiffstats
path: root/src/legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy.c')
-rw-r--r--src/legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/legacy.c b/src/legacy.c
index 65abebc..f735f68 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -644,7 +644,7 @@ int ssh_try_publickey_from_file(ssh_session session,
return -1;
}
- if (session->sshdir == NULL) {
+ if (session->opts.sshdir == NULL) {
if (ssh_options_apply(session) < 0) {
return -1;
}