Skip to content

Commit aab90d7

Browse files
committed
tests/api.c: fix false-positive -Wmaybe-uninitialized in test_wolfSSL_clear_secure_renegotiation() with --enable-all CFLAGS=-Og.
1 parent df486d8 commit aab90d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10304,9 +10304,9 @@ static int test_wolfSSL_clear_secure_renegotiation(void)
1030410304
ExpectIntEQ(WOLFSSL_SUCCESS, wolfSSL_clear(ssl));
1030510305
if (EXPECT_SUCCESS()) {
1030610306
support = wolfSSL_SSL_get_secure_renegotiation_support(ssl);
10307+
ExpectNull(ssl->secure_renegotiation);
10308+
ExpectIntEQ(WOLFSSL_FAILURE, support);
1030710309
}
10308-
ExpectNull(ssl->secure_renegotiation);
10309-
ExpectIntEQ(WOLFSSL_FAILURE, support);
1031010310

1031110311
wolfSSL_free(ssl);
1031210312
wolfSSL_CTX_free(ctx);

0 commit comments

Comments
 (0)