1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 16:45:06 -05:00

libssh: goto DISCONNECT state on error, not SSH_SESSION_FREE

... because otherwise not everything get closed down correctly.

Fixes #2708
Closes #2712
This commit is contained in:
Daniel Stenberg 2018-07-05 22:45:01 +02:00
parent 0d3eeaadb4
commit 03d884b7d8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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; \