diff options
author | cbe <github@claus-beckenbauer.de> | 2020-09-03 15:52:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-03 18:02:27 +0200 |
commit | a27af8b510edcd862e9ce17658a16308ba68c7e9 (patch) | |
tree | 5a732885949024869ba90614b58cff264536736e /lib | |
parent | b4d86d34f9321292cdf58d44615ea2bad7f13e5e (diff) | |
download | curl-a27af8b510edcd862e9ce17658a16308ba68c7e9.tar.gz |
libssh2: pass on the error from ssh_force_knownhost_key_type
Closes #5909
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vssh/libssh2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 968bc1e20..d769bcc6f 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; } |