add check in shutdown case for WS_CHAN_RXD

pull/807/head
JacobBarthelmeh 2025-06-13 14:17:28 -06:00
parent f039af8141
commit 4ecdb666ce
1 changed files with 4 additions and 0 deletions

View File

@ -1046,6 +1046,10 @@ int wolfSSH_shutdown(WOLFSSH* ssh)
* response to SendChannelClose */
if (channel != NULL && ret == WS_SUCCESS) {
ret = wolfSSH_worker(ssh, NULL);
if (ret == WS_CHAN_RXD) {
/* received response */
ret = WS_SUCCESS;
}
}
if (ssh != NULL && ssh->channelList == NULL) {