mirror of
https://github.com/openssl/openssl.git
synced 2026-01-25 02:56:43 +00:00
Revert "rsa_sig.c: Properly duplicate the sig member"
This reverts commit d379cfd1ba.
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
MergeDate: Fri Jan 23 13:59:07 2026
(Merged from https://github.com/openssl/openssl/pull/29736)
This commit is contained in:
@@ -1021,7 +1021,6 @@ static void *rsa_dupctx(void *vprsactx)
|
||||
dstctx->mdctx = NULL;
|
||||
dstctx->tbuf = NULL;
|
||||
dstctx->propq = NULL;
|
||||
dstctx->sig = NULL;
|
||||
|
||||
if (srcctx->rsa != NULL && !RSA_up_ref(srcctx->rsa))
|
||||
goto err;
|
||||
@@ -1048,12 +1047,6 @@ static void *rsa_dupctx(void *vprsactx)
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (srcctx->sig != NULL) {
|
||||
dstctx->sig = OPENSSL_memdup(srcctx->sig, srcctx->siglen);
|
||||
if (dstctx->sig == NULL)
|
||||
goto err;
|
||||
}
|
||||
|
||||
return dstctx;
|
||||
err:
|
||||
rsa_freectx(dstctx);
|
||||
|
||||
Reference in New Issue
Block a user