pidgin: 2008f1bd: Skip iterating non-node children; thanks...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Wed Apr 29 01:25:38 EDT 2009
-----------------------------------------------------------------
Revision: 2008f1bd77717e12b27397825b76c19de2fc7314
Ancestor: 26ac092613aaf9cdf75dc965213469a30135ab56
Author: darkrain42 at pidgin.im
Date: 2009-04-29T05:21:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2008f1bd77717e12b27397825b76c19de2fc7314
Modified files:
libpurple/protocols/jabber/caps.c
ChangeLog:
Skip iterating non-node children; thanks to Marcus for crashing me.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c 313a4bc913bbaf49f3b806a2bf779195315868a8
+++ libpurple/protocols/jabber/caps.c d4701064f2790dc06d6561d92bd8bda2107b0d08
@@ -720,6 +720,8 @@ static JabberCapsClientInfo *jabber_caps
info = g_new0(JabberCapsClientInfo, 1);
for(child = query->child; child; child = child->next) {
+ if (child->type != XMLNODE_TYPE_TAG)
+ continue;
if (!strcmp(child->name,"identity")) {
/* parse identity */
const char *category = xmlnode_get_attrib(child, "category");
More information about the Commits
mailing list