Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Oct 21, 2024
1 parent 1945f71 commit af38c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/dh_extra/dh_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af38c3b

Please sign in to comment.