[asterisk-commits] tilghman: trunk r276911 - /trunk/res/res_jabber.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 16 01:04:26 CDT 2010


Author: tilghman
Date: Fri Jul 16 01:04:22 2010
New Revision: 276911

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276911
Log:
And yet one more

Modified:
    trunk/res/res_jabber.c

Modified: trunk/res/res_jabber.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_jabber.c?view=diff&rev=276911&r1=276910&r2=276911
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Fri Jul 16 01:04:22 2010
@@ -3649,7 +3649,7 @@
 {
 
 	struct aji_client *client = ASTOBJ_REF((struct aji_client *) data);
-	iks *item;
+	iks *item = NULL;
 	if (iks_has_children(pak->query)) {
 		item = iks_first_tag(pak->query);
 		ast_log(LOG_WARNING, "Connection: %s  Node name: %s\n", client->jid->partial,
@@ -3658,7 +3658,9 @@
 			aji_delete_pubsub_node(client, iks_find_attrib(item, "node"));
 		}
 	}
-	iks_delete(item);
+	if (item) {
+		iks_delete(item);
+	}
 	return IKS_FILTER_EAT;
 }
 




More information about the asterisk-commits mailing list