]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: fix CURL_LIBSSH2_DEBUG-enabled build
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 Jan 2021 10:43:21 +0000 (11:43 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 Jan 2021 10:43:21 +0000 (11:43 +0100)
Follow-up to 2dcc940959772a

Reported-by: Gisle Vanem
Bug: https://github.com/curl/curl/commit/2dcc940959772a652f6813fb6bd3092095a4877b#commitcomment-46420088

lib/vssh/libssh2.c

index 04daec9a351ddfc908fe9b59e95adcd407a9db45..3130dcc74d547c1a799bd25572f31f028b3fe790 100644 (file)
@@ -3173,7 +3173,7 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done)
 #endif /* HAVE_LIBSSH2_KNOWNHOST_API */
 
 #ifdef CURL_LIBSSH2_DEBUG
-  libssh2_trace(ssh->ssh_session, ~0);
+  libssh2_trace(sshc->ssh_session, ~0);
   infof(data, "SSH socket: %d\n", (int)sock);
 #endif /* CURL_LIBSSH2_DEBUG */