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

Fix: Corrected type detection logic for mixed-type <definition>s

This commit is contained in:
Philipp Schafft 2018-06-08 14:48:28 +00:00
parent fecc38452a
commit c1c5bd02e3

View File

@ -1038,7 +1038,7 @@ reportxml_t * reportxml_database_build_report(reportxml_database_t *db
return reportxml_new();
}
if (type != REPORTXML_NODE_TYPE__ERROR) {
if (type == REPORTXML_NODE_TYPE__ERROR) {
/* Now the hard part: find out what level we are. */
child = reportxml_node_get_child(definition, 0);
if (!child) {