check if rekeying in test

pull/597/head
JacobBarthelmeh 2023-09-29 15:14:27 -07:00
parent bbc9f9e157
commit cb6088e339
1 changed files with 4 additions and 2 deletions

View File

@ -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);