[asterisk-commits] mmichelson: branch group/CCSS r239232 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 11 17:05:56 CST 2010


Author: mmichelson
Date: Mon Jan 11 17:05:52 2010
New Revision: 239232

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239232
Log:
Add another warning and remove a redundant statement.


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=239232&r1=239231&r2=239232
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Mon Jan 11 17:05:52 2010
@@ -23761,12 +23761,12 @@
 	const char *namespace;
 	
 	if (!presence_node) {
+		ast_log(LOG_WARNING, "Unable to retrieve root node of the XML document\n");
 		return FALSE;
 	}
 	/* Okay, we managed to open the document! YAY! Now, let's start making sure it's all PIDF-ified
 	 * correctly.
 	 */
-	presence_node = ast_xml_get_root(doc);
 	if (strcmp(ast_xml_node_get_name(presence_node), "presence")) {
 		ast_log(LOG_WARNING, "Root node of PIDF document is not 'presence'. Invalid\n");
 		return FALSE;




More information about the asterisk-commits mailing list