Skip to content

Commit 2c6c0c7

Browse files
committed
RxD Fix
1. When wolfSSH_worker() receives channel data, it should set the channelId for the data. It was not happening. Change the check for WS_SUCCESS to also check for WS_CHAN_RXD.
1 parent 08ce58c commit 2c6c0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ int wolfSSH_worker(WOLFSSH* ssh, word32* channelId)
26072607
}
26082608
#endif /* WOLFSSH_TEST_BLOCK */
26092609

2610-
if (ret == WS_SUCCESS) {
2610+
if (ret == WS_SUCCESS || ret == WS_CHAN_RXD) {
26112611
if (channelId != NULL) {
26122612
*channelId = ssh->lastRxId;
26132613
}

0 commit comments

Comments
 (0)