From 5ea88094167c5741d321839ce7cb0186a8a7028f Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 11 Jan 2025 13:41:17 +0000 Subject: Remove a pointless check about Z == 1 ok jsing --- src/lib/libcrypto/ec/ec_lib.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index c2a5545c30..de6fe20083 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_lib.c,v 1.106 2025/01/11 13:38:42 tb Exp $ */ +/* $OpenBSD: ec_lib.c,v 1.107 2025/01/11 13:41:17 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -1249,12 +1249,6 @@ EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx_in) if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) goto err; - /* XXX - is this the right spot for this check? */ - if (!point->Z_is_one) { - ECerror(ERR_R_INTERNAL_ERROR); - goto err; - } - ret = 1; err: -- cgit v1.2.3-55-g6feb