From af38c3bbf45f7c8d6560ac130b770bea55741d17 Mon Sep 17 00:00:00 2001 From: Torben Hansen <50673096+torben-hansen@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:28:40 -0700 Subject: [PATCH] Add null check --- crypto/dh_extra/dh_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/dh_extra/dh_test.cc b/crypto/dh_extra/dh_test.cc index d928f9371d..149a4ca19b 100644 --- a/crypto/dh_extra/dh_test.cc +++ b/crypto/dh_extra/dh_test.cc @@ -1074,6 +1074,7 @@ TEST(DHTest, DHMarshalPubKey) { // Sanity check the Param parsing { DH *dh_params = EVP_PKEY_get0_DH(epkey_dh_params.get()); + ASSERT_TRUE(dh_params); const BIGNUM *p = DH_get0_p(dh_params); const BIGNUM *g = DH_get0_g(dh_params); uint64_t parsed_g = 0;