This reverts commit
9389cdd717569a13be65f5327089193c17aee15b.
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:58:21 2026
(Merged from https://github.com/openssl/openssl/pull/29735)
dstctx->mdctx = NULL;
dstctx->tbuf = NULL;
dstctx->propq = NULL;
- dstctx->sig = NULL;
if (srcctx->rsa != NULL && !RSA_up_ref(srcctx->rsa))
goto err;
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);