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:
Norbert Pocs
2026-01-23 12:03:26 +01:00
parent bc550cfcb2
commit 60fd4a4488

View File

@@ -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);