aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 7f42c7ea8..a26b51be4 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -509,10 +509,11 @@ static int sshkeycallback(CURL *easy,
static CURLcode ssh_knownhost(struct connectdata *conn)
{
- struct SessionHandle *data = conn->data;
CURLcode result = CURLE_OK;
#ifdef HAVE_LIBSSH2_KNOWNHOST_API
+ struct SessionHandle *data = conn->data;
+
if(data->set.str[STRING_SSH_KNOWNHOSTS]) {
/* we're asked to verify the host against a file */
struct ssh_conn *sshc = &conn->proto.sshc;