# HG changeset patch # User Paul Aurich # Date 1263352406 0 # Node ID c64b22932ffacd22515a33311300623f228b24d6 # Parent b8d97cf37200310b23b5f1b85c8701050b50986d Cyrus may not have anything (yet) if it's waiting for a callback or something. diff -r b8d97cf37200 -r c64b22932ffa libpurple/protocols/jabber/auth.c --- a/libpurple/protocols/jabber/auth.c Fri Jan 08 20:16:13 2010 +0000 +++ b/libpurple/protocols/jabber/auth.c Wed Jan 13 03:13:26 2010 +0000 @@ -485,9 +485,12 @@ xmlnode *stanza = NULL; JabberSaslState state = js->auth_mech->handle_failure(js, packet, &stanza, &msg); - if (state != JABBER_SASL_STATE_FAIL && stanza) { - jabber_send(js, stanza); - xmlnode_free(stanza); + if (state != JABBER_SASL_STATE_FAIL) { + if (stanza) { + jabber_send(js, stanza); + xmlnode_free(stanza); + } + return; } }