crypto/evp/pmeth_lib.c: Fix copy'n'paste error
authorRichard Levitte <levitte@openssl.org>
Sun, 20 Oct 2019 18:49:32 +0000 (20:49 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 21 Oct 2019 05:20:37 +0000 (07:20 +0200)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10227)

crypto/evp/pmeth_lib.c

index c840a12b00acf248bd86a566c49921b0f7cadfa7..1186e5ba3af502204185407cf85b6785dbde81d8 100644 (file)
@@ -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);