# HG changeset patch # User Elliott Sales de Andrade # Date 1290393550 0 # Node ID 0c60da8eb88cd54d5d8651d7a33080446f79e06c # Parent 6cadf59c58352ca5df91e7e77e37d792fcf312bd Fix the possible leak in the function that's actually used. diff -r 6cadf59c5835 -r 0c60da8eb88c libpurple/protocols/msn/slpmsg_part.c --- a/libpurple/protocols/msn/slpmsg_part.c Mon Nov 22 02:38:29 2010 +0000 +++ b/libpurple/protocols/msn/slpmsg_part.c Mon Nov 22 02:39:10 2010 +0000 @@ -28,13 +28,13 @@ const char *tmp; int body_len; - tmp = data; - part = msn_slpmsgpart_new(NULL, NULL); - if (data_len < sizeof(*header)) { return NULL; } + part = msn_slpmsgpart_new(NULL, NULL); + tmp = data; + /* Extract the binary SLP header */ part->header = msn_p2p_header_from_wire((MsnP2PHeader*)tmp); tmp += P2P_PACKET_HEADER_SIZE;