libpurple/protocols/msn/slplink.c

branch
soc.2010.msn-tlc
changeset 31044
8c5937d02365
parent 31040
940a7cb0dc6e
child 31046
33671e05cf24
--- a/libpurple/protocols/msn/slplink.c	Mon Jul 05 20:09:20 2010 +0000
+++ b/libpurple/protocols/msn/slplink.c	Mon Jul 05 20:52:35 2010 +0000
@@ -463,6 +463,9 @@
 	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 */

mercurial