changeset 15729:da4813f14457

Simon Wilkinson noticed that this check was invalid and caused authentications to hang.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 26 Feb 2007 04:21:41 +0000
parents 8e08e961813c
children 86c41495fd8f c2f74eb8dbef
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Mon Feb 26 03:19:35 2007 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Mon Feb 26 04:21:41 2007 +0000
@@ -283,7 +283,7 @@
 			sasl_encode(js->sasl, &data[pos], towrite, &out, &olen);
 			pos += towrite;
 
-			if (js->writeh > 0)
+			if (js->writeh == 0)
 				ret = jabber_do_send(js, out, olen);
 			else {
 				ret = -1;