Fix incorrect handling of HTTP 100 responses when using the HTTP
authorMark Doliner <markdoliner@pidgin.im>
Thu, 18 Aug 2011 08:45:22 +0000
changeset2379d8500566 pushlog
parent 619f32df41f1
child 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
libpurple/protocols/msn/httpconn.c
     1.1 --- a/ChangeLog
     1.2 +++ b/ChangeLog
     1.3 @@ -41,6 +41,9 @@
     1.4  	* Fix crash when NAMES is empty. (James McLaughlin) (#14518)
     1.5  
     1.6  	MSN:
     1.7 +	* Fix incorrect handling of HTTP 100 responses when using the HTTP
     1.8 +	  connection method.  This can lead to a crash. (Discovered by Marius
     1.9 +	  Wachtler)
    1.10  	* Fix seemingly random crashing. (#14307)
    1.11  	* Fix a crash when the account is disconnected at the time we are doing a
    1.12  	  SB request. (Hanzz, ported by shlomif) (#12431)
     2.1 --- a/libpurple/protocols/msn/httpconn.c
     2.2 +++ b/libpurple/protocols/msn/httpconn.c
     2.3 @@ -111,8 +111,8 @@
     2.4  			return TRUE;
     2.5  		}
     2.6  
     2.7 +		size -= (s - buf);
     2.8  		buf = s;
     2.9 -		size -= (s - buf);
    2.10  	}
    2.11  
    2.12  	if ((s = strstr(buf, "\r\n\r\n")) == NULL)