From 48bb979252deb4ca51ac9b3cdad70ee92937da4f Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 20 Oct 2019 20:49:32 +0200 Subject: [PATCH] crypto/evp/pmeth_lib.c: Fix copy'n'paste error Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/10227) --- crypto/evp/pmeth_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab