Skip to content

Commit 421f4ab

Browse files
committed
Fixed mix-decl-and-code leftover
1 parent 3e2d559 commit 421f4ab

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

tests/api/test_tls13.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4362,11 +4362,14 @@ int test_tls13_mcdc_batch2_post_handshake_auth(void)
43624362
ExpectIntEQ(test_memio_do_handshake(ssl_c, ssl_s, 10, NULL), 0);
43634363

43644364
/* Drain any NewSessionTicket records at the client. */
4365+
err = WOLFSSL_ERROR_WANT_READ;
43654366
rounds = 0;
43664367
do {
43674368
ret = wolfSSL_read(ssl_c, buf, sizeof(buf));
4368-
if (ret > 0)
4369+
if (ret > 0) {
4370+
rounds++;
43694371
continue;
4372+
}
43704373
err = wolfSSL_get_error(ssl_c, -1);
43714374
rounds++;
43724375
} while (err != WOLFSSL_ERROR_WANT_READ && err != WOLFSSL_ERROR_NONE &&
@@ -4822,14 +4825,14 @@ int test_tls13_mcdc_batch2_alpn(void)
48224825
WOLFSSL_CTX *ctx_c = NULL, *ctx_s = NULL;
48234826
WOLFSSL *ssl_c = NULL, *ssl_s = NULL;
48244827
struct test_memio_ctx test_ctx;
4825-
(void)ctx_c;
4826-
(void)ssl_c;
4827-
(void)ctx_s;
4828-
(void)ssl_s;
48294828
char *proto = NULL;
48304829
unsigned short protoSz = 0;
48314830
char alpn_h2[] = "h2";
48324831
char alpn_http11[] = "http/1.1";
4832+
(void)ctx_c;
4833+
(void)ssl_c;
4834+
(void)ctx_s;
4835+
(void)ssl_s;
48334836
(void)test_ctx;
48344837

48354838
/* ---- sub-test A: matching ALPN protocol "h2" -------------------------- */

0 commit comments

Comments
 (0)