Skip to content

Commit

Permalink
Add a notnull_check in s2n_kem_generate_keypair() (#2160)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodrigo Branco (BSDaemon) <[email protected]>
  • Loading branch information
rrbranco and Rodrigo Branco (BSDaemon) authored Jul 21, 2020
1 parent ab37e82 commit d5cb72e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tls/s2n_kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const struct s2n_iana_to_kem kem_mapping[1] = {
int s2n_kem_generate_keypair(struct s2n_kem_params *kem_params)
{
notnull_check(kem_params);
notnull_check(kem_params->kem);
const struct s2n_kem *kem = kem_params->kem;
notnull_check(kem->generate_keypair);

Expand Down

0 comments on commit d5cb72e

Please sign in to comment.