summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-10 12:59:16 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-10 14:34:01 +0200
commit43c68d842ea78944989e420f4cea6531df0e865b (patch)
treefb1304db6b02ca512f895c01e1bea336e70e86fd
parentaecce3551cbb62a7980e8d22b40eabc091f896a0 (diff)
downloadcurl-43c68d842ea78944989e420f4cea6531df0e865b.tar.gz
libssh2: s/ssherr/sftperr/
The debug output used ssherr instead of sftperr which not only outputs the wrong error code but also casues a warning on Windows. Follow-up to 7370b4e39f1 Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/7370b4e39f1390e701f5b68d910c619151daf72b#r41334700 Closes #5799
-rw-r--r--lib/vssh/libssh2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index 555afc9ef..4f56bb44c 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -1256,7 +1256,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
result = CURLE_SSH;
sshc->actualcode = result;
DEBUGF(infof(data, "error = %d makes libcurl = %d\n",
- ssherr, (int)result));
+ sftperr, (int)result));
state(conn, SSH_STOP);
break;
}