1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Fix: Copy XML childs recursively

This commit is contained in:
Philipp Schafft 2018-07-06 12:16:21 +00:00
parent c26ee2fcfb
commit c02f34e989

View File

@ -840,7 +840,7 @@ int reportxml_node_add_xml_child(reportxml_node_t *node, xml
node->xml_childs = n;
node->xml_childs[node->xml_childs_len] = xmlCopyNode(child, 2);
node->xml_childs[node->xml_childs_len] = xmlCopyNode(child, 1);
if (node->xml_childs[node->xml_childs_len] == NULL)
return -1;
@ -867,7 +867,7 @@ xmlNodePtr reportxml_node_get_xml_child(reportxml_node_t *node, siz
if (idx >= node->xml_childs_len)
return NULL;
ret = xmlCopyNode(node->xml_childs[idx], 2);
ret = xmlCopyNode(node->xml_childs[idx], 1);
return ret;
}