soc.2010.msn-tlc: 73f72f88: Remove the header and footer from the le...

masca at cpw.pidgin.im masca at cpw.pidgin.im
Mon Jul 5 23:01:26 EDT 2010


----------------------------------------------------------------------
Revision: 73f72f8878030f66fe042e4403895867a83662f9
Parent:   3bfecfe36a31083d7a557527922eb6390e30b7df
Author:   masca at cpw.pidgin.im
Date:     07/05/10 16:52:35
Branch:   im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/73f72f8878030f66fe042e4403895867a83662f9

Changelog: 

Remove the header and footer from the length of the mesage.

Changes against parent 3bfecfe36a31083d7a557527922eb6390e30b7df

  patched  libpurple/protocols/msn/slplink.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c	a9a8463758c25cc4fb3f952c1f858fdc65dd8f3c
+++ libpurple/protocols/msn/slplink.c	d9f30cb761628da895fb781cb1cb4d705d9c2a11
@@ -463,6 +463,9 @@ msn_slplink_process_msg(MsnSlpLink *slpl
 	MsnSlpMessage *slpmsg;
 	guint64 offset;
 
+	len -= P2P_PACKET_HEADER_SIZE;
+	len -= P2P_PACKET_FOOTER_SIZE;
+
 	if (header->total_size < header->length)
 	{
 		/* We seem to have received a bad header */


More information about the Commits mailing list