diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-10-11 18:32:04 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-10-11 18:32:04 +0000 |
commit | 001ad4c3f142b397f242710d223020150e0e6c57 (patch) | |
tree | ac9c35a9456eef35f8d33e200364885a5244a5dc /lib/libcrypto/ec/ec_asn1.c | |
parent | 4445ef211cd100393d3f00a7d09c966296a68ca5 (diff) |
Remove NULL check in ec_asn1_pkparameters2group()
The callers already ensure that params != NULL.
ok jsing
Diffstat (limited to 'lib/libcrypto/ec/ec_asn1.c')
-rw-r--r-- | lib/libcrypto/ec/ec_asn1.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libcrypto/ec/ec_asn1.c b/lib/libcrypto/ec/ec_asn1.c index 41eb2d2842b..18cf856e803 100644 --- a/lib/libcrypto/ec/ec_asn1.c +++ b/lib/libcrypto/ec/ec_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_asn1.c,v 1.63 2024/10/11 18:30:58 tb Exp $ */ +/* $OpenBSD: ec_asn1.c,v 1.64 2024/10/11 18:32:03 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -964,10 +964,6 @@ ec_asn1_pkparameters2group(const ECPKPARAMETERS *params) EC_GROUP *group; int nid; - if (params == NULL) { - ECerror(EC_R_MISSING_PARAMETERS); - return NULL; - } if (params->type == 0) {/* the curve is given by an OID */ if ((nid = OBJ_obj2nid(params->value.named_curve)) == NID_undef) { ECerror(EC_R_UNKNOWN_GROUP); |