From: cbe Date: Thu, 3 Sep 2020 13:52:54 +0000 (+0200) Subject: libssh2: pass on the error from ssh_force_knownhost_key_type X-Git-Tag: curl-7_73_0~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a27af8b510edcd862e9ce17658a16308ba68c7e9;p=thirdparty%2Fcurl.git libssh2: pass on the error from ssh_force_knownhost_key_type Closes #5909 --- diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 968bc1e20f..d769bcc6fa 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -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; }