changeset 30842:e2f1c3184302

Remove the header and footer from the length of the mesage.
author masca@cpw.pidgin.im
date Mon, 05 Jul 2010 20:52:35 +0000
parents 01dea46bbb42
children 98cd0ea847ec
files libpurple/protocols/msn/slplink.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */