From: Richard Levitte Date: Sun, 20 Oct 2019 18:49:32 +0000 (+0200) Subject: crypto/evp/pmeth_lib.c: Fix copy'n'paste error X-Git-Tag: openssl-3.0.0-alpha1~1098 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48bb979252deb4ca51ac9b3cdad70ee92937da4f;p=oweals%2Fopenssl.git crypto/evp/pmeth_lib.c: Fix copy'n'paste error Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/10227) --- diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index c840a12b00..1186e5ba3a 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -634,7 +634,7 @@ int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, } if ((EVP_PKEY_CTX_IS_DERIVE_OP(ctx) && ctx->op.kex.exchprovctx != NULL) - || (EVP_PKEY_CTX_IS_DERIVE_OP(ctx) + || (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx) && ctx->op.sig.sigprovctx != NULL)) return legacy_ctrl_to_param(ctx, keytype, optype, cmd, p1, p2);