diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-25 06:57:27 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-25 06:57:27 +0000 |
commit | fd4c8e8fc0749995c156f3ed95116c58bde98217 (patch) | |
tree | 110983fd310c289140f066ebad33dfdaac3dabec /lib/libcrypto/ec | |
parent | 81f5f92789ca24809bd6d09adef9a9acb9da4537 (diff) |
EC_POINT_is_on_curve() error is -1, not 0.
ok miod
Diffstat (limited to 'lib/libcrypto/ec')
-rw-r--r-- | lib/libcrypto/ec/ec_lib.c | 4 |
1 files 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(); |