diff libpurple/protocols/msn/httpconn.c @ 32279:b6955681b7b3

Fix incorrect handling of HTTP 100 responses when using the HTTP connection method. This can lead to a crash. (Discovered by Marius Wachtler)
author Mark Doliner <mark@kingant.net>
date Thu, 18 Aug 2011 08:45:22 +0000
parents d732689006ed
children 10e5000326a5
line wrap: on
line diff
--- 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)