When connecting to MSN with the HTTP method, the payload length was not

Mon, 14 Jul 2008 04:08:30 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Mon, 14 Jul 2008 04:08:30 +0000
changeset 23856
4459c4f3040e
parent 23855
116a8537ba35
child 23857
4eb1a98a2bf9

When connecting to MSN with the HTTP method, the payload length was not
saved after processing a command. Since each command no longer sets the
payload length in the MsnServConn explicitely, this broke things. Of
course, command processing functions were never supposed to do that, so
here's a fixed HTTP method that correctly saves the payload length.

Fixes #6316.

libpurple/protocols/msn/httpconn.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/httpconn.c	Mon Jul 14 03:04:03 2008 +0000
+++ b/libpurple/protocols/msn/httpconn.c	Mon Jul 14 04:08:30 2008 +0000
@@ -381,6 +381,7 @@
 		else
 		{
 			msn_cmdproc_process_cmd_text(servconn->cmdproc, cur);
+			servconn->payload_len = servconn->cmdproc->last_cmd->payload_len;
 		}
 	} while (servconn->connected && servconn->rx_len > 0);
 

mercurial