# HG changeset patch # User Nathan Walp # Date 1159965086 0 # Node ID 21bd0369ddd7628d537e6f6cd94e68d035ed036b # Parent e7aaf5b71eb70ba097ae72caf9a63a5e5ad2d4f0 [gaim-migrate @ 17427] fix this error committer: Tailor Script diff -r e7aaf5b71eb7 -r 21bd0369ddd7 libgaim/protocols/jabber/si.c --- a/libgaim/protocols/jabber/si.c Wed Oct 04 05:18:04 2006 +0000 +++ b/libgaim/protocols/jabber/si.c Wed Oct 04 12:31:26 2006 +0000 @@ -135,7 +135,7 @@ if(!jsx->streamhosts) { JabberIq *iq = jabber_iq_new(jsx->js, JABBER_IQ_ERROR); - xmlnode *error, *condition; + xmlnode *error, *inf; if(jsx->iq_id) jabber_iq_set_id(iq, jsx->iq_id); @@ -144,9 +144,8 @@ error = xmlnode_new_child(iq->node, "error"); xmlnode_set_attrib(error, "code", "404"); xmlnode_set_attrib(error, "type", "cancel"); - condition = xmlnode_new_child(error, "condition"); - xmlnode_set_namespace(condition, "urn:ietf:params:xml:ns:xmpp-stanzas"); - xmlnode_new_child(condition, "item-not-found"); + inf = xmlnode_new_child(error, "item-not-found"); + xmlnode_set_namespace(inf, "urn:ietf:params:xml:ns:xmpp-stanzas"); jabber_iq_send(iq);