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:04:39 +0100 |
commit | fe4075f25962dbd302d856c11ac47adb84edc9ca (patch) | |
tree | 75b51378a1cd520583cce955dda47837b07f2d7c /crypto/x509v3/v3_cpols.c | |
parent | Combined patch against master branch for the following issues: (diff) | |
download | openssl-fe4075f25962dbd302d856c11ac47adb84edc9ca.tar.xz openssl-fe4075f25962dbd302d856c11ac47adb84edc9ca.zip |
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)
Diffstat (limited to 'crypto/x509v3/v3_cpols.c')
-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; } |