Skip to content

Commit f4a2777

Browse files
committed
removed unnecessary copy of cb
1 parent 577cce6 commit f4a2777

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tests/api.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81204,7 +81204,6 @@ static int custom_wolfSSL_shutdown(WOLFSSL *ssl, char *buf,
8120481204
static int test_multiple_alerts_EAGAIN(void)
8120581205
{
8120681206
EXPECT_DECLS;
81207-
CallbackIOSend copy_current_io_cb = NULL;
8120881207
size_t size_of_last_packet = 0;
8120981208

8121081209
/* declare wolfSSL objects */
@@ -81236,7 +81235,6 @@ static int test_multiple_alerts_EAGAIN(void)
8123681235
* We set the custom callback for the IO to emulate multiple EAGAINs
8123781236
* on shutdown, so we can check that we don't send multiple packets.
8123881237
* */
81239-
copy_current_io_cb = ssl_c->CBIOSend;
8124081238
wolfSSL_SSLSetIOSend(ssl_c, custom_wolfSSL_shutdown);
8124181239

8124281240
/*
@@ -81254,8 +81252,6 @@ static int test_multiple_alerts_EAGAIN(void)
8125481252
* */
8125581253
ExpectIntEQ((ssl_c->buffers.outputBuffer.length - size_of_last_packet), 0);
8125681254

81257-
wolfSSL_SSLSetIOSend(ssl_c, copy_current_io_cb);
81258-
8125981255
/* Cleanup and return */
8126081256
wolfSSL_CTX_free(ctx_c);
8126181257
wolfSSL_free(ssl_c);

0 commit comments

Comments
 (0)