pidgin: 8b089c2f: Two patches from Yann Kerherve submitted...

evands at pidgin.im evands at pidgin.im
Wed Jan 21 18:11:15 EST 2009


-----------------------------------------------------------------
Revision: 8b089c2f6fe2d4dd78d481892094de09dc76c1ec
Ancestor: f49b0bab604f956eb4f9fce3a103320497cd40e5
Author: evands at pidgin.im
Date: 2009-01-21T23:08:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8b089c2f6fe2d4dd78d481892094de09dc76c1ec

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

ChangeLog: 

Two patches from Yann Kerherve submitted to pidgin-devl. This fixes XMPP
authentication challenges which end with a quoted value or a trailing newline.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/auth.c	f2ff11e621fda2d79838697334eb2f0c82e114a8
+++ libpurple/protocols/jabber/auth.c	5afbcb7728198f0ccbef92d0dca1785df07dbf96
@@ -749,8 +749,8 @@ static GHashTable* parse_challenge(const
 
 				val_end = cur;
 				while (val_end != val_start && (*val_end == ' ' || *val_end == ',' || *val_end == '\t'
-						|| *val_end == '\r' || *val_start == '\n'
-						|| *val_end == '"'))
+						|| *val_end == '\r' || *val_end == '\n'
+						|| *val_end == '"'  || *val_end == '\0'))
 					val_end--;
 
 				if (val_start != val_end)


More information about the Commits mailing list