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:06:26 +0100 |
commit | efe8398649a1d7fc9d84d2818592652e0632a8a8 (patch) | |
tree | 8d897c302c6fe43e0a74a929d521b4198435e744 /crypto/x509v3 | |
parent | 43b1a3dcc824f234157f71213f9af6848898e4b4 (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/x509v3')
-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 d97f6226b9..f28acab34e 100644 --- a/crypto/x509v3/v3_cpols.c +++ b/crypto/x509v3/v3_cpols.c @@ -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; } |