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:
parent
0d3eeaadb4
commit
03d884b7d8
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user