mirror of
https://github.com/curl/curl.git
synced 2026-07-16 02:07:16 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue