]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix connectorTemplate addition
authorJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:18:22 +0000 (16:18 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:18:22 +0000 (16:18 +0200)
There was a copy-paste error in this code that would be adding the
connectorTemplate once that becomes available. In practice, this was not
reachable code, but anyway, this should be ready for potential addition
of connectorTemplate in the future.

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

index b200d00daef830316e109a5aeae60fe29c86d5b2..c1ebae1bddb9b44763bb67346103ba3022ef535e 100644 (file)
@@ -5230,7 +5230,7 @@ static struct wpabuf * dpp_build_conf_params(void)
 
        asn1_put_utf8string(buf, conf_template);
        if (connector_template)
-               asn1_put_utf8string(buf, conf_template);
+               asn1_put_utf8string(buf, connector_template);
        return asn1_encaps(buf, ASN1_CLASS_UNIVERSAL, ASN1_TAG_SEQUENCE);
 }