mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
removed unnecessary copy of cb
This commit is contained in:
@ -81204,7 +81204,6 @@ static int custom_wolfSSL_shutdown(WOLFSSL *ssl, char *buf,
|
|||||||
static int test_multiple_alerts_EAGAIN(void)
|
static int test_multiple_alerts_EAGAIN(void)
|
||||||
{
|
{
|
||||||
EXPECT_DECLS;
|
EXPECT_DECLS;
|
||||||
CallbackIOSend copy_current_io_cb = NULL;
|
|
||||||
size_t size_of_last_packet = 0;
|
size_t size_of_last_packet = 0;
|
||||||
|
|
||||||
/* declare wolfSSL objects */
|
/* 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
|
* 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.
|
* 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);
|
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);
|
ExpectIntEQ((ssl_c->buffers.outputBuffer.length - size_of_last_packet), 0);
|
||||||
|
|
||||||
wolfSSL_SSLSetIOSend(ssl_c, copy_current_io_cb);
|
|
||||||
|
|
||||||
/* Cleanup and return */
|
/* Cleanup and return */
|
||||||
wolfSSL_CTX_free(ctx_c);
|
wolfSSL_CTX_free(ctx_c);
|
||||||
wolfSSL_free(ssl_c);
|
wolfSSL_free(ssl_c);
|
||||||
|
Reference in New Issue
Block a user