Skip to content

Commit edc9188

Browse files
ageprocppejohnstown
authored andcommitted
tests: disable automatic rekey in SFTP read error fixture
1 parent a847579 commit edc9188

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/unit.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23961,6 +23961,8 @@ static int SftpPutReadCase(word32 size, int fault, int closeFails)
2396123961
if (result != 0)
2396223962
goto done;
2396323963
ssh->sftpState = SFTP_DONE;
23964+
/* The mock peer supplies SFTP replies, but cannot complete a rekey. */
23965+
wolfSSH_SetHighwater(ssh, 0);
2396423966
ssh->channelList->peerWindowSz = WOLFSSH_MAX_SFTP_RW * 4;
2396523967
ssh->channelList->peerMaxPacketSz = WOLFSSH_MAX_SFTP_RW + 1024;
2396623968
wolfSSH_SetIOSend(ctx, SftpPutReadSend);

0 commit comments

Comments
 (0)