changeset 14678:21bd0369ddd7

[gaim-migrate @ 17427] fix this error committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 04 Oct 2006 12:31:26 +0000
parents e7aaf5b71eb7
children c1253e944cd0
files libgaim/protocols/jabber/si.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);