Skip to content

Commit

Permalink
Merge pull request #667 from ejohnstown/sftp-fix
Browse files Browse the repository at this point in the history
SFTP Fix
  • Loading branch information
JacobBarthelmeh authored Mar 18, 2024
2 parents 84bc8b1 + 76e8d66 commit 902cff3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/echoserver/echoserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,11 +1196,8 @@ static int sftp_worker(thread_ctx_t* threadCtx)
}
else if (selected == WS_SELECT_TIMEOUT) {
timeout = TEST_SFTP_TIMEOUT_LONG;
continue;
}

if (ret == WS_WANT_READ || ret == WS_WANT_WRITE ||
selected == WS_SELECT_RECV_READY) {
else if (selected == WS_SELECT_RECV_READY) {
ret = wolfSSH_worker(ssh, NULL);
error = wolfSSH_get_error(ssh);
if (ret == WS_REKEYING) {
Expand All @@ -1213,7 +1210,6 @@ static int sftp_worker(thread_ctx_t* threadCtx)
error == WS_WINDOW_FULL) {
timeout = TEST_SFTP_TIMEOUT;
ret = error;
continue;
}

if (error == WS_EOF) {
Expand Down

0 comments on commit 902cff3

Please sign in to comment.