diff --git a/ChangeLog b/ChangeLog index 0a232a9..b689565 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,14 @@ Version 1.6.16 ******************************************************************************* +2012-03-15 Fabrice Fontaine + + Bug fix in ixmlNode_allowChildren + + Commit d48d73720bd325062c4d3b9ce85f3944be4f562d added a bug in + ixmlNode_allowChildren, this function was returning FALSE instead of + TRUE when newChild->nodeName was eELEMENT_NODE. + 2012-03-15 Fabrice Fontaine Improve upnp/genlib/net diff --git a/ixml/src/node.c b/ixml/src/node.c index a3f1b66..12e3ea9 100644 --- a/ixml/src/node.c +++ b/ixml/src/node.c @@ -428,7 +428,6 @@ static BOOL ixmlNode_allowChildren( case eTEXT_NODE: case eCDATA_SECTION_NODE: return FALSE; - break; case eELEMENT_NODE: switch (newChild->nodeType) { @@ -443,9 +442,9 @@ static BOOL ixmlNode_allowChildren( case eDOCUMENT_NODE: switch (newChild->nodeType) { case eELEMENT_NODE: - return FALSE; - default: break; + default: + return FALSE; } default: