Mercurial > ~mikael > mcabber > hg
diff 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 |
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c Thu May 17 10:55:49 2007 +0200 +++ b/mcabber/src/jab_iq.c Thu May 17 11:40:27 2007 +0200 @@ -849,8 +849,11 @@ jab_send(jc, iqn->xmldata); } -int iqscallback_auth(eviqs *iqp, xmlnode xml_result) +int iqscallback_auth(eviqs *iqp, xmlnode xml_result, guint iqcontext) { + if (iqcontext == IQS_CONTEXT_ERROR) + return -1; + if (jstate == STATE_GETAUTH) { eviqs *iqn;