Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit dc1254d

Browse files
Jakujecryptomilk
authored andcommitted
CVE-2023-1667:tests: Send a bit more to make sure rekey is completed
This was for some reason failing on CentOS 7 in 0.10 branch so bringing this to the master too. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
1 parent d08f1b2 commit dc1254d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/client/torture_rekey.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ static void torture_rekey_send(void **state)
192192
rc = ssh_userauth_publickey_auto(s->ssh.session, NULL, NULL);
193193
assert_int_equal(rc, SSH_AUTH_SUCCESS);
194194

195-
/* send ignore packets of up to 1KB to trigger rekey */
195+
/* send ignore packets of up to 1KB to trigger rekey. Send little bit more
196+
* to make sure it completes with all different ciphers */
196197
memset(data, 0, sizeof(data));
197198
memset(data, 'A', 128);
198-
for (i = 0; i < 16; i++) {
199+
for (i = 0; i < KEX_RETRY; i++) {
199200
ssh_send_ignore(s->ssh.session, data);
200201
ssh_handle_packets(s->ssh.session, 50);
201202
}

0 commit comments

Comments
 (0)