# HG changeset patch # User Evan Schoenberg # Date 1232579296 0 # Node ID 5529879da454ef400ef4917b1dc58bde02709ad6 # Parent 7f9b8351a6b4dbc40f333f314e9558457eed9f51 Two patches from Yann Kerherve submitted to pidgin-devl. This fixes XMPP authentication challenges which end with a quoted value or a trailing newline. diff -r 7f9b8351a6b4 -r 5529879da454 libpurple/protocols/jabber/auth.c --- a/libpurple/protocols/jabber/auth.c Tue Jan 20 19:38:53 2009 +0000 +++ b/libpurple/protocols/jabber/auth.c Wed Jan 21 23:08:16 2009 +0000 @@ -749,8 +749,8 @@ 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)