libssh2: pass on the error from ssh_force_knownhost_key_type

Closes #5909
This commit is contained in:
cbe 2020-09-03 15:52:54 +02:00 committed by Daniel Stenberg
parent b4d86d34f9
commit a27af8b510
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 0 deletions

View File

@ -821,6 +821,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
result = ssh_force_knownhost_key_type(conn);
if(result) {
state(conn, SSH_SESSION_FREE);
sshc->actualcode = result;
break;
}