Mercurial > pidgin
comparison libgaim/protocols/jabber/si.c @ 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 | 67a6716bf4a7 |
children | 118fd0dc5b6e |
comparison
equal
deleted
inserted
replaced
14677:e7aaf5b71eb7 | 14678:21bd0369ddd7 |
---|---|
133 unsigned char hashval[20]; | 133 unsigned char hashval[20]; |
134 JabberID *dstjid; | 134 JabberID *dstjid; |
135 | 135 |
136 if(!jsx->streamhosts) { | 136 if(!jsx->streamhosts) { |
137 JabberIq *iq = jabber_iq_new(jsx->js, JABBER_IQ_ERROR); | 137 JabberIq *iq = jabber_iq_new(jsx->js, JABBER_IQ_ERROR); |
138 xmlnode *error, *condition; | 138 xmlnode *error, *inf; |
139 | 139 |
140 if(jsx->iq_id) | 140 if(jsx->iq_id) |
141 jabber_iq_set_id(iq, jsx->iq_id); | 141 jabber_iq_set_id(iq, jsx->iq_id); |
142 | 142 |
143 xmlnode_set_attrib(iq->node, "to", xfer->who); | 143 xmlnode_set_attrib(iq->node, "to", xfer->who); |
144 error = xmlnode_new_child(iq->node, "error"); | 144 error = xmlnode_new_child(iq->node, "error"); |
145 xmlnode_set_attrib(error, "code", "404"); | 145 xmlnode_set_attrib(error, "code", "404"); |
146 xmlnode_set_attrib(error, "type", "cancel"); | 146 xmlnode_set_attrib(error, "type", "cancel"); |
147 condition = xmlnode_new_child(error, "condition"); | 147 inf = xmlnode_new_child(error, "item-not-found"); |
148 xmlnode_set_namespace(condition, "urn:ietf:params:xml:ns:xmpp-stanzas"); | 148 xmlnode_set_namespace(inf, "urn:ietf:params:xml:ns:xmpp-stanzas"); |
149 xmlnode_new_child(condition, "item-not-found"); | |
150 | 149 |
151 jabber_iq_send(iq); | 150 jabber_iq_send(iq); |
152 | 151 |
153 gaim_xfer_cancel_local(xfer); | 152 gaim_xfer_cancel_local(xfer); |
154 | 153 |