Skip to content

Commit

Permalink
removed unnecessary copy of cb
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed Aug 23, 2024
1 parent 577cce6 commit f4a2777
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);

/*
Expand All @@ -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);
Expand Down

0 comments on commit f4a2777

Please sign in to comment.