diff options
| author | tb <> | 2023-07-25 06:57:26 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-25 06:57:26 +0000 |
| commit | 0b820fda4d0fa7705c091d0745e82dfbaa68484b (patch) | |
| tree | fe87d2bd09a3ae606c3167eeb7ac9cfd3234bbb7 /src/lib/libcrypto/ec/ec_lib.c | |
| parent | c2fc234286c75d942a62891333f85e824d615444 (diff) | |
| download | openbsd-0b820fda4d0fa7705c091d0745e82dfbaa68484b.tar.gz openbsd-0b820fda4d0fa7705c091d0745e82dfbaa68484b.tar.bz2 openbsd-0b820fda4d0fa7705c091d0745e82dfbaa68484b.zip | |
EC_POINT_is_on_curve() error is -1, not 0.
ok miod
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index b5788492cc..00a4a703f8 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_lib.c,v 1.64 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.65 2023/07/25 06:57:26 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -1062,7 +1062,7 @@ EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, | |||
| 1062 | BN_CTX *ctx_in) | 1062 | BN_CTX *ctx_in) |
| 1063 | { | 1063 | { |
| 1064 | BN_CTX *ctx; | 1064 | BN_CTX *ctx; |
| 1065 | int ret = 0; | 1065 | int ret = -1; |
| 1066 | 1066 | ||
| 1067 | if ((ctx = ctx_in) == NULL) | 1067 | if ((ctx = ctx_in) == NULL) |
| 1068 | ctx = BN_CTX_new(); | 1068 | ctx = BN_CTX_new(); |
