From ea478697927798ff2850ea94b4938bb0c76da48b Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Mon, 24 Aug 2020 11:29:23 +1000 Subject: [PATCH] Fix coverity CID #1466378 - Incorrect expression in ec_backend.c Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/12708) --- crypto/ec/ec_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec_backend.c b/crypto/ec/ec_backend.c index 1599e2b1f3d..8acbcebd6f0 100644 --- a/crypto/ec/ec_backend.c +++ b/crypto/ec/ec_backend.c @@ -162,7 +162,7 @@ int ec_group_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl, #endif } else { /* named curve */ - const char *curve_name = curve_name = ec_curve_nid2name(curve_nid); + const char *curve_name = ec_curve_nid2name(curve_nid); if (curve_name == NULL || !ossl_param_build_set_utf8_string(tmpl, params, -- 2.47.3