From: Norbert Pocs Date: Fri, 23 Jan 2026 10:59:55 +0000 (+0100) Subject: Revert "rsa_sig.c: Properly duplicate the sig member" X-Git-Tag: openssl-3.0.19~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3250efdfe99d2d7fe4fb05231add7fba864b7653;p=thirdparty%2Fopenssl.git Revert "rsa_sig.c: Properly duplicate the sig member" This reverts commit 9389cdd717569a13be65f5327089193c17aee15b. Reviewed-by: Nikola Pajkovsky Reviewed-by: Eugene Syromiatnikov Reviewed-by: Tomas Mraz MergeDate: Fri Jan 23 13:58:21 2026 (Merged from https://github.com/openssl/openssl/pull/29735) --- diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implementations/signature/rsa_sig.c index b53d0394898..825c61bf0d3 100644 --- a/providers/implementations/signature/rsa_sig.c +++ b/providers/implementations/signature/rsa_sig.c @@ -996,7 +996,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; @@ -1023,12 +1022,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);