aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-07-05 22:45:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-07-06 09:11:35 +0200
commit03d884b7d867140f283a21d552c816bce2e25b86 (patch)
tree68f8a51dd4e450944eac412bbd57277b8886e1eb /lib
parent0d3eeaadb49e2c55b29e51982f377c968ab9c934 (diff)
libssh: goto DISCONNECT state on error, not SSH_SESSION_FREE
... because otherwise not everything get closed down correctly. Fixes #2708 Closes #2712
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh-libssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh-libssh.c b/lib/ssh-libssh.c
index 1c00879ba..cecf477ac 100644
--- a/lib/ssh-libssh.c
+++ b/lib/ssh-libssh.c
@@ -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; \