pidgin: f5711580: Cyrus may not have anything (yet) if it'...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Tue Jan 12 22:56:59 EST 2010


-----------------------------------------------------------------
Revision: f57115801692578a12eb345cec17051de96de291
Ancestor: d5a2e2287440ac7134c201e66921754bd4187ba9
Author: darkrain42 at pidgin.im
Date: 2010-01-13T03:13:26
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f57115801692578a12eb345cec17051de96de291

Modified files:
        libpurple/protocols/jabber/auth.c

ChangeLog: 

Cyrus may not have anything (yet) if it's waiting for a callback or something.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/auth.c	c66ea15ffc15d38618b089e2e1db52852446f1ea
+++ libpurple/protocols/jabber/auth.c	f83bae6888a7a06b163c7fcb2536b229c08096e6
@@ -485,9 +485,12 @@ void jabber_auth_handle_failure(JabberSt
 		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;
 		}
 	}


More information about the Commits mailing list