[openssl] OpenSSL_1_1_1-stable update

Matt Caswell matt at openssl.org
Tue Nov 16 16:05:44 UTC 2021


The branch OpenSSL_1_1_1-stable has been updated
       via  4204cd6429b8d25e2d96b38b264ef7fa1b67d7be (commit)
      from  ce287b72e49a2b064550508631d638124f85e693 (commit)


- Log -----------------------------------------------------------------
commit 4204cd6429b8d25e2d96b38b264ef7fa1b67d7be
Author: x2018 <xkernel.wang at foxmail.com>
Date:   Wed Oct 27 17:26:48 2021 +0800

    free the Post-Handshake Auth digest when there is an error saving the digest
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Bernd Edlinger <bernd.edlinger at hotmail.de>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16924)

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

Summary of changes:
 ssl/statem/statem_lib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c
index c3b6f8f456..c218992e46 100644
--- a/ssl/statem/statem_lib.c
+++ b/ssl/statem/statem_lib.c
@@ -2410,6 +2410,8 @@ int tls13_save_handshake_digest_for_pha(SSL *s)
             SSLfatal(s, SSL_AD_INTERNAL_ERROR,
                      SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA,
                      ERR_R_INTERNAL_ERROR);
+            EVP_MD_CTX_free(s->pha_dgst);
+            s->pha_dgst = NULL;
             return 0;
         }
     }


More information about the openssl-commits mailing list