diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-07-05 22:45:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-07-06 09:11:35 +0200 |
commit | 03d884b7d867140f283a21d552c816bce2e25b86 (patch) | |
tree | 68f8a51dd4e450944eac412bbd57277b8886e1eb /lib | |
parent | 0d3eeaadb49e2c55b29e51982f377c968ab9c934 (diff) | |
download | curl-03d884b7d867140f283a21d552c816bce2e25b86.tar.gz |
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.c | 2 |
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; \ |