/pidgin/main: c03eefbf89a8: Fix conditional.

Mark Doliner mark at kingant.net
Tue Jan 28 10:38:11 EST 2014


Changeset: c03eefbf89a823d638355aa00c4584364237c4c1
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2014-01-13 18:09 -0800
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/c03eefbf89a8

Description:

Fix conditional.

I think this would have incorrectly found a Connection: header in the
XML body. No idea what the harm is.

diffstat:

 libpurple/protocols/jabber/bosh.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/jabber/bosh.c b/libpurple/protocols/jabber/bosh.c
--- a/libpurple/protocols/jabber/bosh.c
+++ b/libpurple/protocols/jabber/bosh.c
@@ -783,7 +783,7 @@ jabber_bosh_http_connection_process(Purp
 			conn->body_len = len;
 		}
 
-		if (connection && (!end_of_headers || content_length < end_of_headers)) {
+		if (connection && (!end_of_headers || connection < end_of_headers)) {
 			const char *tmp;
 			if (strstr(connection, "\r\n") == NULL)
 				return;



More information about the Commits mailing list