From: Shane Lontis Date: Mon, 24 Aug 2020 01:29:23 +0000 (+1000) Subject: Fix coverity CID #1466378 - Incorrect expression in ec_backend.c X-Git-Tag: openssl-3.0.0-alpha7~390 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea478697927798ff2850ea94b4938bb0c76da48b;p=thirdparty%2Fopenssl.git Fix coverity CID #1466378 - Incorrect expression in ec_backend.c Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/12708) --- 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,