]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: s/ssherr/sftperr/
authorDaniel Stenberg <daniel@haxx.se>
Mon, 10 Aug 2020 10:59:16 +0000 (12:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Aug 2020 12:34:01 +0000 (14:34 +0200)
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

lib/vssh/libssh2.c

index 555afc9ef6bf661d6c0ccc2502cb3aed82d67c72..4f56bb44ce7fd9a931b37be4f6822b1459377499 100644 (file)
@@ -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;
       }