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 openssl/openssl#22795)

(cherry picked from commit f95e3a09173b13dcfae668be6103e64c02222f08)
Signed-off-by: fly2x <fly2x@hitls.org>
  • Loading branch information
lan1120 authored and fly2x committed Dec 7, 2023
1 parent 23d1d05 commit 70e6bf7
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 @@ -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 70e6bf7

Please sign in to comment.