[PATCH]
Yann Kerherve
yann at cyberion.net
Wed Jan 21 03:36:39 EST 2009
Hi,
Attached is a patch for what I think is a copy/paste error. I've not
seen any bug caused by that, but I guess the bug exists if a challenge
ends with a trailing newline.
Thanks,
Yann Kerherve
--- a/libpurple/protocols/jabber/auth.c
+++ b/libpurple/protocols/jabber/auth.c
@@ -752,7 +752,7 @@ static GHashTable* parse_challenge(const char *challenge)
val_end = cur;
while (val_end != val_start &&
(*val_end == ' ' || *val_end == ',' || *val_end == '\t'
- || *val_end == '\r' ||
*val_start == '\n'
+ || *val_end == '\r' ||
*val_end == '\n'
|| *val_end == '"'))
val_end--;
More information about the Devel
mailing list