Skip to content

Commit

Permalink
check if rekeying in test
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Sep 29, 2023
1 parent bbc9f9e commit cb6088e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,10 @@ static void test_wolfSSH_SFTP_SendReadPacket(void)
outSz = WOLFSSH_MAX_SFTP_RW;
rxSz = wolfSSH_SFTP_SendReadPacket(ssh, handle, handleSz,
ofst, out, outSz);
AssertIntGT(rxSz, 0);
AssertIntLE(rxSz, outSz);
if (rxSz != WS_REKEYING) {
AssertIntGT(rxSz, 0);
AssertIntLE(rxSz, outSz);
}

free(out);
wolfSSH_SFTP_Close(ssh, handle, handleSz);
Expand Down

0 comments on commit cb6088e

Please sign in to comment.