Browse Source

ts: fix memleaks caused by TS_VERIFY_CTX_set_imprint

CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16347)
master^2
zhaozg 2 months ago
committed by Tomas Mraz
parent
commit
62bae84d45
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      crypto/ts/ts_verify_ctx.c

+ 1
- 0
crypto/ts/ts_verify_ctx.c View File

@ -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;


Loading…
Cancel
Save