]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix coverity CID #1466378 - Incorrect expression in ec_backend.c
authorShane Lontis <shane.lontis@oracle.com>
Mon, 24 Aug 2020 01:29:23 +0000 (11:29 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Sat, 5 Sep 2020 05:41:29 +0000 (15:41 +1000)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/12708)

crypto/ec/ec_backend.c

index 1599e2b1f3d9b5b99d459e81cbfc65c6a271d316..8acbcebd6f0261332ff6808100e019110de387b5 100644 (file)
@@ -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,