diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-02-02 13:36:10 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-02-05 01:05:44 +0100 |
commit | 0d17628067daef233f2196a822775af083ec1660 (patch) | |
tree | 65bdad6117cf8c1c6219502b5d8ec7dca7c01a24 /crypto | |
parent | 5d0634a93bdc18e753d641c4563cb18f685e148f (diff) |
Fix a crash with malformed user notice policy numbers
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2352)
(cherry picked from commit fe4075f25962dbd302d856c11ac47adb84edc9ca)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509v3/v3_cpols.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_cpols.c b/crypto/x509v3/v3_cpols.c index a697338488..f717e132d4 100644 --- a/crypto/x509v3/v3_cpols.c +++ b/crypto/x509v3/v3_cpols.c @@ -345,10 +345,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; } |