[openssl] master update

tomas at openssl.org tomas at openssl.org
Thu Aug 26 09:06:24 UTC 2021


The branch master has been updated
       via  62bae84d4587ec9a56d0ce830e36e4a5b2fa8a33 (commit)
      from  a291cfdfdee0cb40a684e1c379eff88ba43f784b (commit)


- Log -----------------------------------------------------------------
commit 62bae84d4587ec9a56d0ce830e36e4a5b2fa8a33
Author: zhaozg <zhaozg at gmail.com>
Date:   Wed Aug 18 15:40:22 2021 +0800

    ts: fix memleaks caused by TS_VERIFY_CTX_set_imprint
    
    CLA: trivial
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16347)

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

Summary of changes:
 crypto/ts/ts_verify_ctx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/ts/ts_verify_ctx.c b/crypto/ts/ts_verify_ctx.c
index 7478421689..2f6f00c0cc 100644
--- a/crypto/ts/ts_verify_ctx.c
+++ b/crypto/ts/ts_verify_ctx.c
@@ -70,6 +70,7 @@ STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx,
 unsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,
                                          unsigned char *hexstr, long len)
 {
+    OPENSSL_free(ctx->imprint);
     ctx->imprint = hexstr;
     ctx->imprint_len = len;
     return ctx->imprint;


More information about the openssl-commits mailing list