diff --git a/tests/api.c b/tests/api.c index 618398f3c3..05a7688d7f 100644 --- a/tests/api.c +++ b/tests/api.c @@ -10304,9 +10304,9 @@ static int test_wolfSSL_clear_secure_renegotiation(void) ExpectIntEQ(WOLFSSL_SUCCESS, wolfSSL_clear(ssl)); if (EXPECT_SUCCESS()) { support = wolfSSL_SSL_get_secure_renegotiation_support(ssl); + ExpectNull(ssl->secure_renegotiation); + ExpectIntEQ(WOLFSSL_FAILURE, support); } - ExpectNull(ssl->secure_renegotiation); - ExpectIntEQ(WOLFSSL_FAILURE, support); wolfSSL_free(ssl); wolfSSL_CTX_free(ctx);