From: lan1120 Date: Wed, 22 Nov 2023 01:45:25 +0000 (+0800) Subject: Initialize dstctx->mgf1_md to NULL in rsa_dupctx function X-Git-Tag: openssl-3.3.0-alpha1~549 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f95e3a09173b13dcfae668be6103e64c02222f08;p=thirdparty%2Fopenssl.git 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) --- diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implementations/signature/rsa_sig.c index b8648b54bf6..76db37dd02c 100644 --- a/providers/implementations/signature/rsa_sig.c +++ b/providers/implementations/signature/rsa_sig.c @@ -1006,6 +1006,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;