]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: goto DISCONNECT state on error, not SSH_SESSION_FREE
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 Jul 2018 20:45:01 +0000 (22:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Jul 2018 07:11:35 +0000 (09:11 +0200)
... because otherwise not everything get closed down correctly.

Fixes #2708
Closes #2712

lib/ssh-libssh.c

index 1c00879bad13fd20ac26758eab5c45875399a9cf..cecf477ac344f2e60efc59ce7886a7c31ce2d584 100644 (file)
@@ -429,7 +429,7 @@ cleanup:
 }
 
 #define MOVE_TO_ERROR_STATE(_r) { \
-  state(conn, SSH_SESSION_FREE); \
+  state(conn, SSH_SESSION_DISCONNECT); \
   sshc->actualcode = _r; \
   rc = SSH_ERROR; \
   break; \