changeset 16659:a6854e3043a4

Don't try to base64 encode and then append an empty string
author Mark Doliner <mark@kingant.net>
date Sun, 29 Apr 2007 17:14:45 +0000
parents c737c683c563
children a0a359d20d09
files libpurple/protocols/jabber/auth.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c	Sun Apr 29 16:29:22 2007 +0000
+++ b/libpurple/protocols/jabber/auth.c	Sun Apr 29 17:14:45 2007 +0000
@@ -819,7 +819,7 @@
 		} else {
 			response = xmlnode_new("response");
 			xmlnode_set_namespace(response, "urn:ietf:params:xml:ns:xmpp-sasl");
-			if (c_out) {
+			if (clen > 0) {
 				enc_out = purple_base64_encode((unsigned char*)c_out, clen);
 				xmlnode_insert_data(response, enc_out, -1);
 				g_free(enc_out);