Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jab_iq.c @ 1224:fb0460a3cf4b
Fix iqscallback_auth() when authentication fails
This patch fixes a bug introduced with changeset 4a7db2870685.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 17 May 2007 11:40:27 +0200 |
parents | ab5de2ed2b7e |
children | 401639413340 |
comparison
equal
deleted
inserted
replaced
1223:591d8b35c881 | 1224:fb0460a3cf4b |
---|---|
847 | 847 |
848 iqn->callback = &iqscallback_storage_rosternotes; | 848 iqn->callback = &iqscallback_storage_rosternotes; |
849 jab_send(jc, iqn->xmldata); | 849 jab_send(jc, iqn->xmldata); |
850 } | 850 } |
851 | 851 |
852 int iqscallback_auth(eviqs *iqp, xmlnode xml_result) | 852 int iqscallback_auth(eviqs *iqp, xmlnode xml_result, guint iqcontext) |
853 { | 853 { |
854 if (iqcontext == IQS_CONTEXT_ERROR) | |
855 return -1; | |
856 | |
854 if (jstate == STATE_GETAUTH) { | 857 if (jstate == STATE_GETAUTH) { |
855 eviqs *iqn; | 858 eviqs *iqn; |
856 | 859 |
857 if (xml_result) { | 860 if (xml_result) { |
858 xmlnode x = xmlnode_get_tag(xml_result, "query"); | 861 xmlnode x = xmlnode_get_tag(xml_result, "query"); |