mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
api.c:test_wolfSSL_dtls_stateless_maxfrag(): add missing condition (clang-analyzer-core.NullDereference).
This commit is contained in:
@@ -90819,7 +90819,9 @@ static int test_wolfSSL_dtls_stateless_maxfrag(void)
|
|||||||
WOLFSSL_SUCCESS);
|
WOLFSSL_SUCCESS);
|
||||||
wolfSSL_SetIOWriteCtx(ssl_c2, &test_ctx);
|
wolfSSL_SetIOWriteCtx(ssl_c2, &test_ctx);
|
||||||
wolfSSL_SetIOReadCtx(ssl_c2, &test_ctx);
|
wolfSSL_SetIOReadCtx(ssl_c2, &test_ctx);
|
||||||
max_fragment = ssl_s->max_fragment;
|
if (EXPECT_SUCCESS()) {
|
||||||
|
max_fragment = ssl_s->max_fragment;
|
||||||
|
}
|
||||||
/* send CH */
|
/* send CH */
|
||||||
ExpectTrue((wolfSSL_connect(ssl_c2) == WC_NO_ERR_TRACE(WOLFSSL_FATAL_ERROR)) &&
|
ExpectTrue((wolfSSL_connect(ssl_c2) == WC_NO_ERR_TRACE(WOLFSSL_FATAL_ERROR)) &&
|
||||||
(ssl_c2->error == WC_NO_ERR_TRACE(WANT_READ)));
|
(ssl_c2->error == WC_NO_ERR_TRACE(WANT_READ)));
|
||||||
|
Reference in New Issue
Block a user