Skip to content

Commit

Permalink
Fix a crash with malformed user notice policy numbers
Browse files Browse the repository at this point in the history
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #2352)
(cherry picked from commit fe4075f)
  • Loading branch information
bernd-edlinger authored and levitte committed Feb 5, 2017
1 parent 43b1a3d commit efe8398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/x509v3/v3_cpols.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ static int nref_nos(STACK_OF(ASN1_INTEGER) *nnums, STACK_OF(CONF_VALUE) *nos)
return 1;

merr:
ASN1_INTEGER_free(aint);
X509V3err(X509V3_F_NREF_NOS, ERR_R_MALLOC_FAILURE);

err:
sk_ASN1_INTEGER_pop_free(nnums, ASN1_STRING_free);
return 0;
}

Expand Down

0 comments on commit efe8398

Please sign in to comment.