]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Remove a duplicated check for priv_key
authorJouni Malinen <j@w1.fi>
Sat, 1 Mar 2025 18:13:36 +0000 (20:13 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 1 Mar 2025 18:13:36 +0000 (20:13 +0200)
This was checked just a couple of lines above.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/common/dpp_backup.c

index 1e92a14fdd205c7f5b194662fc672743d826b359..25c0bd548c52d18ce757c7de8b364565a4dc0707 100644 (file)
@@ -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;
 
        /*