diff libpurple/protocols/jabber/auth.c @ 24982:5529879da454

Two patches from Yann Kerherve submitted to pidgin-devl. This fixes XMPP authentication challenges which end with a quoted value or a trailing newline.
author Evan Schoenberg <evan.s@dreskin.net>
date Wed, 21 Jan 2009 23:08:16 +0000
parents 61e0924de04a
children 5f9a24d1c25e
line wrap: on
line diff
--- 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)