libgaim/protocols/jabber/oob.c

changeset 14356
7f4abf922cfa
parent 14254
77edc7a6191a
child 14697
518c0fae208e
--- a/libgaim/protocols/jabber/oob.c	Tue Aug 22 18:10:43 2006 +0000
+++ b/libgaim/protocols/jabber/oob.c	Tue Aug 22 18:28:00 2006 +0000
@@ -192,8 +192,12 @@
 	GaimXfer *xfer;
 	char *filename;
 	char *url;
+	const char *type;
 	xmlnode *querynode, *urlnode;
 
+	if(!(type = xmlnode_get_attrib(packet, "type")) || strcmp(type, "set"))
+		return;
+
 	if(!(querynode = xmlnode_get_child(packet, "query")))
 		return;
 

mercurial