mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08: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