From f4a27772e064085c438cb224fe832eb4e8dc0c42 Mon Sep 17 00:00:00 2001 From: Reda Chouk Date: Fri, 23 Aug 2024 17:44:49 +0200 Subject: [PATCH] removed unnecessary copy of cb --- tests/api.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/api.c b/tests/api.c index 43874da880..6e5c93e04d 100644 --- a/tests/api.c +++ b/tests/api.c @@ -81204,7 +81204,6 @@ static int custom_wolfSSL_shutdown(WOLFSSL *ssl, char *buf, static int test_multiple_alerts_EAGAIN(void) { EXPECT_DECLS; - CallbackIOSend copy_current_io_cb = NULL; size_t size_of_last_packet = 0; /* declare wolfSSL objects */ @@ -81236,7 +81235,6 @@ static int test_multiple_alerts_EAGAIN(void) * We set the custom callback for the IO to emulate multiple EAGAINs * on shutdown, so we can check that we don't send multiple packets. * */ - copy_current_io_cb = ssl_c->CBIOSend; wolfSSL_SSLSetIOSend(ssl_c, custom_wolfSSL_shutdown); /* @@ -81254,8 +81252,6 @@ static int test_multiple_alerts_EAGAIN(void) * */ ExpectIntEQ((ssl_c->buffers.outputBuffer.length - size_of_last_packet), 0); - wolfSSL_SSLSetIOSend(ssl_c, copy_current_io_cb); - /* Cleanup and return */ wolfSSL_CTX_free(ctx_c); wolfSSL_free(ssl_c);