Skip to content

Commit

Permalink
Initialize dstctx->mgf1_md to NULL in rsa_dupctx function
Browse files Browse the repository at this point in the history
Signed-off-by: lan1120 <lanming@huawei.com>

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #22795)
  • Loading branch information
lan1120 authored and t8m committed Nov 30, 2023
1 parent 990d9ff commit f95e3a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/implementations/signature/rsa_sig.c
Expand Up @@ -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;
Expand Down

0 comments on commit f95e3a0

Please sign in to comment.