Fix incorrect handling of HTTP 100 responses when using the HTTP

Thu, 18 Aug 2011 08:45:22 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Thu, 18 Aug 2011 08:45:22 +0000
changeset 32038
2379d8500566
parent 32037
619f32df41f1
child 32039
a217bdda7c4b

Fix incorrect handling of HTTP 100 responses when using the HTTP
connection method. This can lead to a crash. (Discovered by Marius
Wachtler)

ChangeLog file | annotate | diff | comparison | revisions
libpurple/protocols/msn/httpconn.c file | annotate | diff | comparison | revisions
--- a/ChangeLog	Thu Aug 18 08:41:24 2011 +0000
+++ b/ChangeLog	Thu Aug 18 08:45:22 2011 +0000
@@ -41,6 +41,9 @@
 	* Fix crash when NAMES is empty. (James McLaughlin) (#14518)
 
 	MSN:
+	* Fix incorrect handling of HTTP 100 responses when using the HTTP
+	  connection method.  This can lead to a crash. (Discovered by Marius
+	  Wachtler)
 	* Fix seemingly random crashing. (#14307)
 	* Fix a crash when the account is disconnected at the time we are doing a
 	  SB request. (Hanzz, ported by shlomif) (#12431)
--- a/libpurple/protocols/msn/httpconn.c	Thu Aug 18 08:41:24 2011 +0000
+++ b/libpurple/protocols/msn/httpconn.c	Thu Aug 18 08:45:22 2011 +0000
@@ -111,8 +111,8 @@
 			return TRUE;
 		}
 
+		size -= (s - buf);
 		buf = s;
-		size -= (s - buf);
 	}
 
 	if ((s = strstr(buf, "\r\n\r\n")) == NULL)

mercurial