removed unnecessary copy of cb

This commit is contained in:
Reda Chouk
2024-08-23 17:44:49 +02:00
parent 577cce60df
commit f4a27772e0

View File

@ -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);