Skip to content

Commit c998efc

Browse files
add check in shutdown case for WS_CHAN_RXD
1 parent a6e5238 commit c998efc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)