From: tb Date: Fri, 11 Oct 2024 18:32:03 +0000 (+0000) Subject: Remove NULL check in ec_asn1_pkparameters2group() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=73e2332072d724780a482d0631229ac1908e62ee;p=openbsd Remove NULL check in ec_asn1_pkparameters2group() The callers already ensure that params != NULL. ok jsing --- 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);