From: Jouni Malinen Date: Sat, 1 Mar 2025 18:13:36 +0000 (+0200) Subject: DPP: Remove a duplicated check for priv_key X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af015a5d1933f7eb64fb5bf9b80484575e28a9d;p=thirdparty%2Fhostap.git DPP: Remove a duplicated check for priv_key This was checked just a couple of lines above. Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp_backup.c b/src/common/dpp_backup.c index 1e92a14fd..25c0bd548 100644 --- a/src/common/dpp_backup.c +++ b/src/common/dpp_backup.c @@ -161,7 +161,7 @@ static struct wpabuf * dpp_build_key_pkg(struct dpp_authentication *auth) /* Attributes ::= SET OF Attribute { { OneAsymmetricKeyAttributes } } */ attr = dpp_build_attribute(auth->conf); attr = asn1_encaps(attr, ASN1_CLASS_UNIVERSAL, ASN1_TAG_SET); - if (!priv_key || !attr || !alg) + if (!attr || !alg) goto fail; /*