summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorlan1120 <lanming@huawei.com>2023-11-22 09:45:25 +0800
committerTomas Mraz <tomas@openssl.org>2023-11-30 18:45:15 +0100
commitf95e3a09173b13dcfae668be6103e64c02222f08 (patch)
treef6b6257781ef01f6c0083b488bfd75ef54c7a813 /providers
parent990d9ff508070757912c000f0c4132dbb5a0bb0a (diff)
Initialize dstctx->mgf1_md to NULL in rsa_dupctx function
Signed-off-by: lan1120 <lanming@huawei.com> Reviewed-by: Todd Short <todd.short@me.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22795)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/signature/rsa_sig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implementations/signature/rsa_sig.c
index b8648b54bf..76db37dd02 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;