jabber: This is more correct[er]

Tue, 09 Mar 2010 23:13:42 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Tue, 09 Mar 2010 23:13:42 +0000
changeset 29851
de1f19dc73d5
parent 29850
a7b5b8035f30
child 29852
54a66e3ae00e

jabber: This is more correct[er]

libpurple/protocols/jabber/parser.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/parser.c	Tue Mar 09 23:11:46 2010 +0000
+++ b/libpurple/protocols/jabber/parser.c	Tue Mar 09 23:13:42 2010 +0000
@@ -59,7 +59,7 @@
 				/* TODO: Check this against the spec; I'm not sure if the check
 				 * against minor is accurate.
 				 */
-				if (js->protocol_version.major > 1 || js->protocol_version.minor > 0)
+				if (js->protocol_version.major > 1 || (js->protocol_version == 1 && js->protocol_version.minor > 0))
 					purple_connection_error_reason(js->gc,
 							PURPLE_CONNECTION_ERROR_AUTHENTICATION_IMPOSSIBLE,
 							_("XMPP Version Mismatch"));

mercurial