diff options
-rw-r--r-- | src/lib/libcrypto/ec/ecp_smpl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index 7f9612b7df..37e2d50d64 100644 --- a/src/lib/libcrypto/ec/ecp_smpl.c +++ b/src/lib/libcrypto/ec/ecp_smpl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_smpl.c,v 1.59 2024/11/02 15:58:49 tb Exp $ */ | 1 | /* $OpenBSD: ecp_smpl.c,v 1.60 2024/11/03 15:47:11 tb Exp $ */ |
2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
@@ -394,11 +394,6 @@ ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP *group, | |||
394 | BIGNUM *z, *Z, *Z_1, *Z_2, *Z_3; | 394 | BIGNUM *z, *Z, *Z_1, *Z_2, *Z_3; |
395 | int ret = 0; | 395 | int ret = 0; |
396 | 396 | ||
397 | if (EC_POINT_is_at_infinity(group, point) > 0) { | ||
398 | ECerror(EC_R_POINT_AT_INFINITY); | ||
399 | return 0; | ||
400 | } | ||
401 | |||
402 | BN_CTX_start(ctx); | 397 | BN_CTX_start(ctx); |
403 | 398 | ||
404 | if ((z = BN_CTX_get(ctx)) == NULL) | 399 | if ((z = BN_CTX_get(ctx)) == NULL) |