From: tb Date: Tue, 25 Jul 2023 06:57:26 +0000 (+0000) Subject: EC_POINT_is_on_curve() error is -1, not 0. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1540d532f09ac3a77656e1f9d75fa80fd1313938;p=openbsd EC_POINT_is_on_curve() error is -1, not 0. ok miod --- diff --git a/lib/libcrypto/ec/ec_lib.c b/lib/libcrypto/ec/ec_lib.c index b5788492cc9..00a4a703f89 100644 --- a/lib/libcrypto/ec/ec_lib.c +++ b/lib/libcrypto/ec/ec_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_lib.c,v 1.64 2023/07/07 19:37:53 beck Exp $ */ +/* $OpenBSD: ec_lib.c,v 1.65 2023/07/25 06:57:26 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -1062,7 +1062,7 @@ EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx_in) { BN_CTX *ctx; - int ret = 0; + int ret = -1; if ((ctx = ctx_in) == NULL) ctx = BN_CTX_new();