Skip to content

Commit 8ca9c49

Browse files
committed
test: fix typo in structure field
1 parent da22cbe commit 8ca9c49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/api/test_tls13.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ static int test_tls13_early_data_write_until_write_ok(WOLFSSL* ssl,
20742074
}
20752075
struct test_tls13_wwrite_ctx {
20762076
int want_write;
2077-
struct test_memio_ctx *text_ctx;
2077+
struct test_memio_ctx *test_ctx;
20782078
};
20792079
static int test_tls13_mock_wantwrite_cb(WOLFSSL* ssl, char* data, int sz,
20802080
void* ctx)
@@ -2084,7 +2084,7 @@ static int test_tls13_mock_wantwrite_cb(WOLFSSL* ssl, char* data, int sz,
20842084
if (wwctx->want_write) {
20852085
return WOLFSSL_CBIO_ERR_WANT_WRITE;
20862086
}
2087-
return test_memio_write_cb(ssl, data, sz, wwctx->text_ctx);
2087+
return test_memio_write_cb(ssl, data, sz, wwctx->test_ctx);
20882088
}
20892089
#endif /* HAVE_MANUAL_MEMIO_TESTS_DEPENDENCIES && WOLFSSL_EARLY_DATA */
20902090
int test_tls13_early_data(void)
@@ -2181,8 +2181,8 @@ int test_tls13_early_data(void)
21812181
if (everyWriteWantWrite) {
21822182
XMEMSET(&wwrite_ctx_c, 0, sizeof(wwrite_ctx_c));
21832183
XMEMSET(&wwrite_ctx_s, 0, sizeof(wwrite_ctx_s));
2184-
wwrite_ctx_c.text_ctx = &test_ctx;
2185-
wwrite_ctx_s.text_ctx = &test_ctx;
2184+
wwrite_ctx_c.test_ctx = &test_ctx;
2185+
wwrite_ctx_s.test_ctx = &test_ctx;
21862186
wolfSSL_SetIOWriteCtx(ssl_c, &wwrite_ctx_c);
21872187
wolfSSL_SSLSetIOSend(ssl_c, test_tls13_mock_wantwrite_cb);
21882188
wolfSSL_SetIOWriteCtx(ssl_s, &wwrite_ctx_s);

0 commit comments

Comments
 (0)