Skip to content

Commit

Permalink
ASN1_item_verify_ctx(): Return -1 on fatal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed Jun 6, 2024
1 parent 0285160 commit 22dff96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/asn1/a_verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ int ASN1_item_verify_ctx(const ASN1_ITEM *it, const X509_ALGOR *alg,
inl = ASN1_item_i2d(data, &buf_in, it);
if (inl <= 0) {
ERR_raise(ERR_LIB_ASN1, ERR_R_INTERNAL_ERROR);
ret = -1;
goto err;
}
if (buf_in == NULL) {
ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
ret = -1;
goto err;
}
inll = inl;
Expand Down

0 comments on commit 22dff96

Please sign in to comment.