aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-10-02 12:37:40 +0200
committerJakub Jelen <jjelen@redhat.com>2020-10-02 12:39:41 +0200
commit5348267fa85b49355885b716faf85a7f3cb44e1b (patch)
tree7666391bd5329d0eef57627c81f4865f49676760
parentccb5d6e0ac55918380ed69e8e3b544d2b6d50ae4 (diff)
downloadlibssh-5348267fa85b49355885b716faf85a7f3cb44e1b.tar.gz
libssh-5348267fa85b49355885b716faf85a7f3cb44e1b.tar.xz
libssh-5348267fa85b49355885b716faf85a7f3cb44e1b.zip
client: Reset pending_call_state on disconnect
Fixes T251 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
-rw-r--r--src/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index f2e84b46..3984b3f4 100644
--- a/src/client.c
+++ b/src/client.c
@@ -724,6 +724,7 @@ error:
}
session->opts.fd = SSH_INVALID_SOCKET;
session->session_state = SSH_SESSION_STATE_DISCONNECTED;
+ session->pending_call_state = SSH_PENDING_CALL_NONE;
while ((it = ssh_list_get_iterator(session->channels)) != NULL) {
ssh_channel_do_free(ssh_iterator_value(ssh_channel, it));