[openssl] openssl-3.0 update

tomas at openssl.org tomas at openssl.org
Thu Jan 6 11:06:18 UTC 2022


The branch openssl-3.0 has been updated
       via  99ea7ec94b26a24a90be76d6e7176842ea4a5f09 (commit)
      from  ce2f4b6b1705526b3862b2f137dfcac0ad2cb558 (commit)


- Log -----------------------------------------------------------------
commit 99ea7ec94b26a24a90be76d6e7176842ea4a5f09
Author: xkernel <xkernel.wang at foxmail.com>
Date:   Tue Jan 4 21:18:02 2022 +0800

    properly free the resource from CRYPTO_malloc
    
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17412)
    
    (cherry picked from commit 1b87116a0c43b8b4e1ad88b851d5bcf27c1a5f64)

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

Summary of changes:
 ssl/statem/statem_clnt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c
index c93c6b1f21..c17716283d 100644
--- a/ssl/statem/statem_clnt.c
+++ b/ssl/statem/statem_clnt.c
@@ -3187,7 +3187,7 @@ static int tls_construct_cke_gost18(SSL *s, WPACKET *pkt)
     if (peer_cert == NULL) {
         SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE,
                  SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER);
-        return 0;
+        goto err;
     }
 
     pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx,
@@ -3195,7 +3195,7 @@ static int tls_construct_cke_gost18(SSL *s, WPACKET *pkt)
                                           s->ctx->propq);
     if (pkey_ctx == NULL) {
         SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_MALLOC_FAILURE);
-        return 0;
+        goto err;
     }
 
     if (EVP_PKEY_encrypt_init(pkey_ctx) <= 0 ) {


More information about the openssl-commits mailing list