libgaim/protocols/jabber/si.c

changeset 14356
7f4abf922cfa
parent 14329
05c3cc0c1f79
child 14561
a8cd3be8821d
--- a/libgaim/protocols/jabber/si.c	Tue Aug 22 18:10:43 2006 +0000
+++ b/libgaim/protocols/jabber/si.c	Tue Aug 22 18:28:00 2006 +0000
@@ -191,7 +191,10 @@
 	GaimXfer *xfer;
 	JabberSIXfer *jsx;
 	xmlnode *query, *streamhost;
-	const char *sid, *from;
+	const char *sid, *from, *type;
+
+	if(!(type = xmlnode_get_attrib(packet, "type")) || strcmp(type, "set"))
+		return;
 
 	if(!(from = xmlnode_get_attrib(packet, "from")))
 		return;

mercurial