summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/ec/ec_asn1.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index 41eb2d2842..18cf856e80 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1.c,v 1.63 2024/10/11 18:30:58 tb Exp $ */ 1/* $OpenBSD: ec_asn1.c,v 1.64 2024/10/11 18:32:03 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -964,10 +964,6 @@ ec_asn1_pkparameters2group(const ECPKPARAMETERS *params)
964 EC_GROUP *group; 964 EC_GROUP *group;
965 int nid; 965 int nid;
966 966
967 if (params == NULL) {
968 ECerror(EC_R_MISSING_PARAMETERS);
969 return NULL;
970 }
971 if (params->type == 0) {/* the curve is given by an OID */ 967 if (params->type == 0) {/* the curve is given by an OID */
972 if ((nid = OBJ_obj2nid(params->value.named_curve)) == NID_undef) { 968 if ((nid = OBJ_obj2nid(params->value.named_curve)) == NID_undef) {
973 ECerror(EC_R_UNKNOWN_GROUP); 969 ECerror(EC_R_UNKNOWN_GROUP);