Fix where the result of sending a channel close was getting replaced

with success.
pull/22/head
John Safranek 2016-10-23 16:14:17 -07:00
parent 184182d152
commit ccc1101612
1 changed files with 1 additions and 2 deletions

View File

@ -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: