# HG changeset patch # User Elliott Sales de Andrade # Date 1273042925 0 # Node ID 63684aa5d6ab75a50092e286ab8c80c9d9400e7e # Parent 87854e2529a0b9dae1353af7473b54a15c9ffc91 The length of a DC packet does not include itself. diff -r 87854e2529a0 -r 63684aa5d6ab libpurple/protocols/msn/directconn.c --- a/libpurple/protocols/msn/directconn.c Sun Apr 25 23:38:27 2010 +0000 +++ b/libpurple/protocols/msn/directconn.c Wed May 05 07:02:05 2010 +0000 @@ -95,7 +95,7 @@ MsnDirectConnPacket *p; p = g_new0(MsnDirectConnPacket, 1); - p->length = length + 4; + p->length = length; p->data = g_malloc(length); return p;