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.
(cherry picked from commit 76eb3f869b3fabf06057bcfe28f9a6b9fd57131f)
This commit is contained in:
Fabrice Fontaine 2012-03-15 11:07:54 +01:00 committed by Marcelo Roberto Jimenez
parent 5969530dcf
commit fec6069a21
2 changed files with 10 additions and 3 deletions

View File

@ -318,6 +318,14 @@ Version 1.8.0
Version 1.6.16
*******************************************************************************
2012-03-15 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
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 <fabrice.fontaine(at)orange.com>
Improve upnp/genlib/net

View File

@ -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: