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)

(cherry picked from commit f95e3a0)
  • Loading branch information
lan1120 authored and t8m committed Nov 30, 2023
1 parent aa78b15 commit 4554f0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/implementations/signature/rsa_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4554f0b

Please sign in to comment.