]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fixed capability metadata
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 31 Mar 2013 20:15:42 +0000 (22:15 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 31 Mar 2013 20:15:42 +0000 (22:15 +0200)
src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c

index bce4156c3df9e6593ac8f1ff891c7579b45dab67..e9dbbc79ab7e03c7c211b4ec1306863f4795a513 100644 (file)
@@ -371,9 +371,10 @@ static xmlNodePtr create_capability(private_tnc_ifmap_soap_t *this,
        node2 = xmlNewNode(NULL, "name");
        xmlAddChild(node, node2);
        snprintf(buf, BUF_LEN, "%Y", name);
-       xmlNodeAddContent(node2, this->device_name);
+       xmlNodeAddContent(node2, buf);
 
        node2 = xmlNewNode(NULL, "administrative-domain");
+       xmlAddChild(node, node2);
        xmlNodeAddContent(node2, "strongswan");
 
        return node;