From ccc1101612e7292c9ddaf2be7ec2a9df36aefb56 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Sun, 23 Oct 2016 16:14:17 -0700 Subject: [PATCH] Fix where the result of sending a channel close was getting replaced with success. --- src/internal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/internal.c b/src/internal.c index 6aa8cc8c..8266a873 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2587,8 +2587,7 @@ static int DoPacket(WOLFSSH* ssh) case MSGID_CHANNEL_CLOSE: WLOG(WS_LOG_DEBUG, "Decoding MSGID_CHANNEL_CLOSE"); - DoChannelClose(ssh, buf + idx, payloadSz, &payloadIdx); - ret = WS_SUCCESS; + ret = DoChannelClose(ssh, buf + idx, payloadSz, &payloadIdx); break; case MSGID_CHANNEL_REQUEST: