[openssl] OpenSSL_1_0_2-stable update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Sat Aug 17 14:54:08 UTC 2019


The branch OpenSSL_1_0_2-stable has been updated
       via  7fafaf27c2c2990fde2798424a38ce8443dae595 (commit)
      from  d333ebaf9c77332754a9d5e111e2f53e1de54fdd (commit)


- Log -----------------------------------------------------------------
commit 7fafaf27c2c2990fde2798424a38ce8443dae595
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Fri Aug 16 15:32:32 2019 +0200

    Fix error handling in X509_chain_up_ref
    
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Tomas Mraz <tmraz at fedoraproject.org>
    (Merged from https://github.com/openssl/openssl/pull/9615)

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

Summary of changes:
 crypto/x509/x509_cmp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c
index 2d82f8fa8b..a7b90e6a42 100644
--- a/crypto/x509/x509_cmp.c
+++ b/crypto/x509/x509_cmp.c
@@ -490,6 +490,8 @@ STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain)
     STACK_OF(X509) *ret;
     int i;
     ret = sk_X509_dup(chain);
+    if (ret == NULL)
+        return NULL;
     for (i = 0; i < sk_X509_num(ret); i++) {
         X509 *x = sk_X509_value(ret, i);
         CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);


More information about the openssl-commits mailing list