From 04b369f8bf87c74ef6956bc66e013e91cb21ef37 Mon Sep 17 00:00:00 2001 From: torben-hansen <50673096+torben-hansen@users.noreply.github.com> Date: Mon, 21 Oct 2024 14:27:02 -0700 Subject: [PATCH] Add null check in dh testing (#1937) Could theoretically be null I suppose. --- 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;