]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Initialize dstctx->mgf1_md to NULL in rsa_dupctx function
authorlan1120 <lanming@huawei.com>
Wed, 22 Nov 2023 01:45:25 +0000 (09:45 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 30 Nov 2023 17:45:15 +0000 (18:45 +0100)
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)

providers/implementations/signature/rsa_sig.c

index b8648b54bf6062eed7408c4aa845a5c13849cb07..76db37dd02c24d3e0dde58acd642fb21905b4835 100644 (file)
@@ -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;