[openssl] master update

Matt Caswell matt at openssl.org
Wed Jul 17 11:44:12 UTC 2019


The branch master has been updated
       via  7bc82358ae930cfbd353602bc1fd25bfad107350 (commit)
      from  3c93fbacf6f5abd63e1d1763e7da537ed87f2a5d (commit)


- Log -----------------------------------------------------------------
commit 7bc82358ae930cfbd353602bc1fd25bfad107350
Author: Matt Caswell <matt at openssl.org>
Date:   Tue Jul 16 15:32:35 2019 +0100

    Fix the return value for SSL_get0_chain_certs()
    
    This function was always returning 0. It should return 1 on success.
    
    Fixes #9374
    
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    (Merged from https://github.com/openssl/openssl/pull/9395)

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

Summary of changes:
 ssl/s3_lib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 3238fd9..8a22d01 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -3552,6 +3552,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg)
 
     case SSL_CTRL_GET_CHAIN_CERTS:
         *(STACK_OF(X509) **)parg = s->cert->key->chain;
+        ret = 1;
         break;
 
     case SSL_CTRL_SELECT_CURRENT_CERT:


More information about the openssl-commits mailing list