X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fec%2Fec_key.c;h=620860cad49788187083b3cae7481d2d408ce0c1;hp=07c33fe733db60152b429508e0ee21a15181bbe0;hb=68886be7e2cd395a759fcd41d2cede461b68843d;hpb=b8b12aadd8edfd3bd327157c8899b1cf3403177f diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index 07c33fe733..620860cad4 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -296,7 +296,7 @@ int EC_KEY_check_key(const EC_KEY *eckey) goto err; /* testing whether the pub_key is on the elliptic curve */ - if (!EC_POINT_is_on_curve(eckey->group, eckey->pub_key, ctx)) { + if (EC_POINT_is_on_curve(eckey->group, eckey->pub_key, ctx) <= 0) { ECerr(EC_F_EC_KEY_CHECK_KEY, EC_R_POINT_IS_NOT_ON_CURVE); goto err; }