diff src/protocols/jabber/chat.c @ 8010:c4b5a35c7a12

[gaim-migrate @ 8690] jabber crashen fixen committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 05 Jan 2004 17:42:36 +0000
parents 415df6fa0395
children 9a6df4d567e0
line wrap: on
line diff
--- a/src/protocols/jabber/chat.c	Mon Jan 05 13:47:20 2004 +0000
+++ b/src/protocols/jabber/chat.c	Mon Jan 05 17:42:36 2004 +0000
@@ -309,7 +309,7 @@
 
 		for(x = query->child; x; x = x->next) {
 			const char *xmlns;
-			if(strcmp(x->name, "x"))
+			if(x->type != NODE_TYPE_TAG || strcmp(x->name, "x"))
 				continue;
 
 			if(!(xmlns = xmlnode_get_attrib(x, "xmlns")))
@@ -461,7 +461,7 @@
 
 		for(x = query->child; x; x = x->next) {
 			const char *xmlns;
-			if(strcmp(x->name, "x"))
+			if(x->type != NODE_TYPE_TAG || strcmp(x->name, "x"))
 				continue;
 
 			if(!(xmlns = xmlnode_get_attrib(x, "xmlns")))