EC_POINT_is_on_curve does not return a boolean
[openssl.git] / crypto / ec / ecp_oct.c
index a68b559bc0f3859c9390be5ad6b5f0cfb1f1fe7c..8bb7aa30907694506238fe3665d80ee73645b932 100644 (file)
@@ -410,7 +410,7 @@ int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
     }
 
     /* test required by X9.62 */
-    if (!EC_POINT_is_on_curve(group, point, ctx)) {
+    if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
         ECerr(EC_F_EC_GFP_SIMPLE_OCT2POINT, EC_R_POINT_IS_NOT_ON_CURVE);
         goto err;
     }