mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
libssh2: pass on the error from ssh_force_knownhost_key_type
Closes #5909
This commit is contained in:
parent
b4d86d34f9
commit
a27af8b510
@ -821,6 +821,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||||||
result = ssh_force_knownhost_key_type(conn);
|
result = ssh_force_knownhost_key_type(conn);
|
||||||
if(result) {
|
if(result) {
|
||||||
state(conn, SSH_SESSION_FREE);
|
state(conn, SSH_SESSION_FREE);
|
||||||
|
sshc->actualcode = result;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user