fixed XML syntax for TNCCS-Recommendation messages
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 10 Jan 2011 06:21:03 +0000 (07:21 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 11 Jan 2011 00:17:40 +0000 (01:17 +0100)
src/libcharon/plugins/tnccs_11/messages/tnccs_recommendation_msg.c

index 2d57c7d..1fe9686 100644 (file)
@@ -178,7 +178,8 @@ tnccs_msg_t *tnccs_recommendation_msg_create(TNC_IMV_Action_Recommendation rec)
        }
 
        n2 = xmlNewNode(NULL, BAD_CAST enum_to_name(tnccs_msg_type_names, this->type));
-       xmlNodeSetContent(n2, BAD_CAST rec_string);
+    xmlNewProp(n2, BAD_CAST "type", BAD_CAST rec_string);
+       xmlNodeSetContent(n2, "");
        xmlAddChild(n, n2);
 
        return &this->public.tnccs_msg_interface;