gaim/gaim

Parents b07f8e36ccb0
Children d1868ade1363
this might fix the crash again. i have grown to hate file transfer even more. someone with a less broken development environment might want to try to get the crash to happen some more, and let me know if its still there

argh. i'm going to bed.
--- a/src/protocols/jabber/si.c Thu Apr 28 00:03:05 2005 -0400
+++ b/src/protocols/jabber/si.c Thu Apr 28 02:04:13 2005 -0400
@@ -46,6 +46,8 @@
typedef struct _JabberSIXfer {
JabberStream *js;
+ gboolean accepted;
+
char *stream_id;
char *iq_id;
@@ -186,6 +188,10 @@
return;
jsx = xfer->data;
+
+ if(!jsx->accepted)
+ return;
+
if(jsx->iq_id)
g_free(jsx->iq_id);
jsx->iq_id = g_strdup(xmlnode_get_attrib(packet, "id"));
@@ -625,6 +631,8 @@
if(jsx->iq_id)
jabber_iq_set_id(iq, jsx->iq_id);
+ jsx->accepted = TRUE;
+
si = xmlnode_new_child(iq->node, "si");
xmlnode_set_attrib(si, "xmlns", "http://jabber.org/protocol/si");