Skip to content

Commit

Permalink
Add null check in dh testing (aws#1937)
Browse files Browse the repository at this point in the history
Could theoretically be null I suppose.
  • Loading branch information
torben-hansen authored Oct 21, 2024
1 parent 1945f71 commit 04b369f
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 04b369f

Please sign in to comment.