summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2026-06-09 05:23:30 +0000
committertb <>2026-06-09 05:23:30 +0000
commitbaf3d6d1012f4dbbc344143b7e0aec718fd4d552 (patch)
treee60ccca0f7880b5c506530e53a7a790d94b286d2 /src/lib
parentbb7c8a3975e9e76bf209ebf13cd598a0fda24e9b (diff)
downloadopenbsd-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')
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c4
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 }