diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index a60543ab98..cb9c19a777 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.113 2025/01/22 09:56:58 jsing Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.114 2025/01/25 10:36:50 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 | */ |
@@ -738,8 +738,6 @@ EC_GROUP_cmp(const EC_GROUP *group1, const EC_GROUP *group2, BN_CTX *ctx_in) | |||
738 | 738 | ||
739 | BN_CTX_start(ctx); | 739 | BN_CTX_start(ctx); |
740 | 740 | ||
741 | if (ec_group_get_field_type(group1) != ec_group_get_field_type(group2)) | ||
742 | goto distinct; | ||
743 | if ((nid1 = EC_GROUP_get_curve_name(group1)) != NID_undef && | 741 | if ((nid1 = EC_GROUP_get_curve_name(group1)) != NID_undef && |
744 | (nid2 = EC_GROUP_get_curve_name(group2)) != NID_undef) { | 742 | (nid2 = EC_GROUP_get_curve_name(group2)) != NID_undef) { |
745 | if (nid1 != nid2) | 743 | if (nid1 != nid2) |