Skip to content

Commit

Permalink
null check for d2i_ECPKParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed Jul 3, 2024
1 parent 66ff3bc commit 62a16d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/ec_extra/ec_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ EC_KEY *d2i_ECParameters(EC_KEY **out_key, const uint8_t **inp, long len) {

EC_GROUP *d2i_ECPKParameters(EC_GROUP **out_group, const uint8_t **inp,
long len) {
if (len < 0) {
if (inp == NULL || len < 0) {
return NULL;
}

Expand Down

0 comments on commit 62a16d0

Please sign in to comment.