# HG changeset patch # User Nathan Walp # Date 1117079665 0 # Node ID 999555fbbbd9b645b7cde118a5c42fe2a850caab # Parent 45598096d197e47806032745fd79cda462fe887d [gaim-migrate @ 12730] this is the other jabber ft thing, which went into oldstatus for 1.3.0 committer: Tailor Script diff -r 45598096d197 -r 999555fbbbd9 src/protocols/jabber/si.c --- a/src/protocols/jabber/si.c Thu May 26 03:51:40 2005 +0000 +++ b/src/protocols/jabber/si.c Thu May 26 03:54:25 2005 +0000 @@ -45,6 +45,8 @@ typedef struct _JabberSIXfer { JabberStream *js; + gboolean accepted; + char *stream_id; char *iq_id; @@ -187,6 +189,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")); @@ -622,6 +628,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");