summaryrefslogtreecommitdiffstats
path: root/libssh/channels1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/channels1.c')
-rw-r--r--libssh/channels1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/channels1.c b/libssh/channels1.c
index 6a7a3f26..f1bcbe8a 100644
--- a/libssh/channels1.c
+++ b/libssh/channels1.c
@@ -283,7 +283,9 @@ int channel_handle1(SSH_SESSION *session, int type) {
}
break;
case SSH_SMSG_EXITSTATUS:
- channel_rcv_close1(session);
+ if (channel_rcv_close1(session) < 0) {
+ return -1;
+ }
break;
default:
ssh_log(session, SSH_LOG_FUNCTIONS, "Unexepected message %d", type);