Skip to content

Commit 4ecdb66

Browse files
add check in shutdown case for WS_CHAN_RXD
1 parent f039af8 commit 4ecdb66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ssh.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,10 @@ int wolfSSH_shutdown(WOLFSSH* ssh)
10461046
* response to SendChannelClose */
10471047
if (channel != NULL && ret == WS_SUCCESS) {
10481048
ret = wolfSSH_worker(ssh, NULL);
1049+
if (ret == WS_CHAN_RXD) {
1050+
/* received response */
1051+
ret = WS_SUCCESS;
1052+
}
10491053
}
10501054

10511055
if (ssh != NULL && ssh->channelList == NULL) {

0 commit comments

Comments
 (0)