diff options
| author | tb <> | 2026-06-09 05:23:30 +0000 |
|---|---|---|
| committer | tb <> | 2026-06-09 05:23:30 +0000 |
| commit | baf3d6d1012f4dbbc344143b7e0aec718fd4d552 (patch) | |
| tree | e60ccca0f7880b5c506530e53a7a790d94b286d2 /src/lib/libcrypto/ec | |
| parent | bb7c8a3975e9e76bf209ebf13cd598a0fda24e9b (diff) | |
| download | openbsd-baf3d6d1012f4dbbc344143b7e0aec718fd4d552.tar.gz openbsd-baf3d6d1012f4dbbc344143b7e0aec718fd4d552.tar.bz2 openbsd-baf3d6d1012f4dbbc344143b7e0aec718fd4d552.zip | |
Fix strange error check in EC_POINT_get_affine_coordinates
EC_POINT_is_at_infinity() has a Boolean return nowadays, so drop > 0.
ok jsing kenjiro
Diffstat (limited to 'src/lib/libcrypto/ec')
| -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 30b2cf95b8..fc66d29a9f 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.131 2025/12/26 18:49:13 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.132 2026/06/09 05:23:30 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 | */ |
| @@ -972,7 +972,7 @@ EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, | |||
| 972 | BN_CTX *ctx = NULL; | 972 | BN_CTX *ctx = NULL; |
| 973 | int ret = 0; | 973 | int ret = 0; |
| 974 | 974 | ||
| 975 | if (EC_POINT_is_at_infinity(group, point) > 0) { | 975 | if (EC_POINT_is_at_infinity(group, point)) { |
| 976 | ECerror(EC_R_POINT_AT_INFINITY); | 976 | ECerror(EC_R_POINT_AT_INFINITY); |
| 977 | goto err; | 977 | goto err; |
| 978 | } | 978 | } |
