From 1540d532f09ac3a77656e1f9d75fa80fd1313938 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 25 Jul 2023 06:57:26 +0000 Subject: [PATCH] EC_POINT_is_on_curve() error is -1, not 0. ok miod --- lib/libcrypto/ec/ec_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1