Unverified Commit 03d884b7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

libssh: goto DISCONNECT state on error, not SSH_SESSION_FREE

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

Fixes #2708
Closes #2712
parent 0d3eeaad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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; \