Remove unused value of eckey
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 16 Sep 2011 07:08:39 +0000 (03:08 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 16 Sep 2011 07:08:39 +0000 (03:08 -0400)
CID:435
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/openssl.c

index 93c014c..314d2ae 100644 (file)
@@ -2391,7 +2391,7 @@ At the moment we do not support creating custom curves.
       (curve))
 {
        EVP_PKEY *pkey;
-       EC_KEY *eckey = EC_KEY_new();
+       EC_KEY *eckey;
 
        CHECK_SYMBOL(curve);
 
@@ -2399,7 +2399,7 @@ At the moment we do not support creating custom curves.
        eckey = EC_KEY_new_by_curve_name(
                ec_curve_by_name((char *)string_data(XSYMBOL(curve)->name)));
 
-       if ((eckey == NULL)) {
+       if (eckey == NULL) {
                error ("no such curve");
        }