changeset 28878:c64b22932ffa

Cyrus may not have anything (yet) if it's waiting for a callback or something.
author Paul Aurich <paul@darkrain42.org>
date Wed, 13 Jan 2010 03:13:26 +0000
parents b8d97cf37200
children 485f69e04d6a 36daf22b09f6
files libpurple/protocols/jabber/auth.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}
 	}