Fix return value of config_description_doc.
UPNP_E_XXX should not be used instead of IXML_XXX
(cherry picked from commit 72c29ef1f6
)
This commit is contained in:
parent
0c92ca4014
commit
490b0a5c86
@ -357,6 +357,12 @@ Version 1.8.0
|
||||
Version 1.6.19
|
||||
*******************************************************************************
|
||||
|
||||
2013-09-03 Peng <howtofly(at)gmail.com>
|
||||
|
||||
Fix return value of config_description_doc.
|
||||
|
||||
UPNP_E_XXX should not be used instead of IXML_XXX
|
||||
|
||||
2013-09-03 Peng <howtofly(at)gmail.com>
|
||||
|
||||
Remove faulty free in GetDescDocumentAndURL.
|
||||
|
@ -267,6 +267,7 @@ static int config_description_doc(
|
||||
err_code =
|
||||
ixmlNode_appendChild(rootNode, (IXML_Node *) element);
|
||||
if (err_code != IXML_SUCCESS) {
|
||||
err_code = UPNP_E_INVALID_DESC;
|
||||
goto error_handler;
|
||||
}
|
||||
textNode =
|
||||
@ -277,6 +278,7 @@ static int config_description_doc(
|
||||
err_code =
|
||||
ixmlNode_appendChild((IXML_Node *) element, textNode);
|
||||
if (err_code != IXML_SUCCESS) {
|
||||
err_code = UPNP_E_INTERNAL_ERROR;
|
||||
goto error_handler;
|
||||
}
|
||||
} else {
|
||||
@ -327,6 +329,7 @@ static int config_description_doc(
|
||||
}
|
||||
err_code = ixmlNode_setNodeValue(textNode, url_str.buf);
|
||||
if (err_code != IXML_SUCCESS) {
|
||||
err_code = UPNP_E_OUTOF_MEMORY;
|
||||
goto error_handler;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user