/pidgin/main: 44348822264a: Correctly send empty IRC SASL respon...

Mantas Mikul??nas grawity at nullroute.eu.org
Tue Jan 14 20:56:19 EST 2014


Changeset: 44348822264af562086338b14cfe3d5eb3ebadd4
Author:	 Mantas Mikul??nas <grawity at nullroute.eu.org>
Date:	 2013-01-06 12:17 +0200
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/44348822264a

Description:

Correctly send empty IRC SASL responses. Fixes #15452

diffstat:

 libpurple/protocols/irc/msgs.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff --git a/libpurple/protocols/irc/msgs.c b/libpurple/protocols/irc/msgs.c
--- a/libpurple/protocols/irc/msgs.c
+++ b/libpurple/protocols/irc/msgs.c
@@ -1736,7 +1736,10 @@ irc_msg_auth(struct irc_conn *irc, char 
 		return;
 	}
 
-	authinfo = purple_base64_encode((const guchar*)c_out, clen);
+	if (clen > 0)
+		authinfo = purple_base64_encode((const guchar*)c_out, clen);
+	else
+		authinfo = g_strdup("+");
 
 	buf = irc_format(irc, "vv", "AUTHENTICATE", authinfo);
 	irc_send(irc, buf);



More information about the Commits mailing list