From 4554f0b728ce91289d41ec1e1a90e5d90c38cc8a Mon Sep 17 00:00:00 2001 From: lan1120 Date: Wed, 22 Nov 2023 09:45:25 +0800 Subject: [PATCH] Initialize dstctx->mgf1_md to NULL in rsa_dupctx function Signed-off-by: lan1120 Reviewed-by: Todd Short Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/22795) (cherry picked from commit f95e3a09173b13dcfae668be6103e64c02222f08) --- providers/implementations/signature/rsa_sig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implementations/signature/rsa_sig.c index cd5de6bd518..5876158d27e 100644 --- a/providers/implementations/signature/rsa_sig.c +++ b/providers/implementations/signature/rsa_sig.c @@ -1011,6 +1011,7 @@ static void *rsa_dupctx(void *vprsactx) *dstctx = *srcctx; dstctx->rsa = NULL; dstctx->md = NULL; + dstctx->mgf1_md = NULL; dstctx->mdctx = NULL; dstctx->tbuf = NULL; dstctx->propq = NULL; -- 2.47.2