1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

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 7370b4e39f

Reported-by: Gisle Vanem
Bug: 7370b4e39f (r41334700)
Closes #5799
This commit is contained in:
Daniel Stenberg 2020-08-10 12:59:16 +02:00
parent aecce3551c
commit 43c68d842e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}