Skip to content

Commit 06de22e

Browse files
committed
api.c:test_wolfSSL_dtls_stateless_maxfrag(): add missing condition (clang-analyzer-core.NullDereference).
1 parent fa65da7 commit 06de22e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90819,7 +90819,9 @@ static int test_wolfSSL_dtls_stateless_maxfrag(void)
9081990819
WOLFSSL_SUCCESS);
9082090820
wolfSSL_SetIOWriteCtx(ssl_c2, &test_ctx);
9082190821
wolfSSL_SetIOReadCtx(ssl_c2, &test_ctx);
90822-
max_fragment = ssl_s->max_fragment;
90822+
if (EXPECT_SUCCESS()) {
90823+
max_fragment = ssl_s->max_fragment;
90824+
}
9082390825
/* send CH */
9082490826
ExpectTrue((wolfSSL_connect(ssl_c2) == WC_NO_ERR_TRACE(WOLFSSL_FATAL_ERROR)) &&
9082590827
(ssl_c2->error == WC_NO_ERR_TRACE(WANT_READ)));

0 commit comments

Comments
 (0)