Skip to content

Commit

Permalink
Merge pull request #618 from JacobBarthelmeh/files
Browse files Browse the repository at this point in the history
when getting failure status packets return failure error code
  • Loading branch information
ejohnstown authored Nov 17, 2023
2 parents de5b6a3 + 68cf698 commit 3bc4fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wolfsftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7475,6 +7475,9 @@ int wolfSSH_SFTP_SendReadPacket(WOLFSSH* ssh, byte* handle, word32 handleSz,
WLOG(WS_LOG_SFTP, "OK or EOF found");
ret = 0; /* nothing was read */
}
else {
ret = WS_FATAL_ERROR;
}
}
state->state = STATE_SEND_READ_CLEANUP;
NO_BREAK;
Expand Down

0 comments on commit 3bc4fa9

Please sign in to comment.