changeset 26831:b1f8cebaab17

Skip iterating non-node children; thanks to Marcus for crashing me.
author Paul Aurich <paul@darkrain42.org>
date Wed, 29 Apr 2009 05:21:42 +0000
parents 5aabe95773dd
children c33f21f0a73e
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Wed Apr 29 02:12:19 2009 +0000
+++ b/libpurple/protocols/jabber/caps.c	Wed Apr 29 05:21:42 2009 +0000
@@ -720,6 +720,8 @@
 	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");