]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: pass on the error from ssh_force_knownhost_key_type
authorcbe <github@claus-beckenbauer.de>
Thu, 3 Sep 2020 13:52:54 +0000 (15:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Sep 2020 16:02:27 +0000 (18:02 +0200)
Closes #5909

lib/vssh/libssh2.c

index 968bc1e20fc388590dd2793a430c3e74a4fa7e19..d769bcc6fac6dc58c5fcee8e5447e6c1f7276037 100644 (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;
       }