[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Sun Feb 5 00:05:23 UTC 2017


The branch master has been updated
       via  fe4075f25962dbd302d856c11ac47adb84edc9ca (commit)
      from  83b4049ab75e9da1815e9c854a9297bca3d4af6b (commit)


- Log -----------------------------------------------------------------
commit fe4075f25962dbd302d856c11ac47adb84edc9ca
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Thu Feb 2 13:36:10 2017 +0100

    Fix a crash with malformed user notice policy numbers
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2352)

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509v3/v3_cpols.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/x509v3/v3_cpols.c b/crypto/x509v3/v3_cpols.c
index a697338..f717e13 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;
 }
 


More information about the openssl-commits mailing list