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 968bc1e..d769bcc 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -821,6 +821,7 @@
       result = ssh_force_knownhost_key_type(conn);
       if(result) {
         state(conn, SSH_SESSION_FREE);
+        sshc->actualcode = result;
         break;
       }