pidgin: e8604c1e: Fix MSNP9 too. Same patch by Mark and P...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Tue Aug 18 11:51:36 EDT 2009


-----------------------------------------------------------------
Revision: e8604c1efc37413c8bfd4225bf24c534c4da8d57
Ancestor: 9c6cdf62a91e5a4112bc362ea0d2e741b9baf7e8
Author: rekkanoryo at pidgin.im
Date: 2009-08-16T23:28:12
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e8604c1efc37413c8bfd4225bf24c534c4da8d57

Modified files:
        libpurple/protocols/msnp9/slplink.c

ChangeLog: 

Fix MSNP9 too.  Same patch by Mark and Paul, just applied to MSNP9.

-------------- next part --------------
============================================================
--- libpurple/protocols/msnp9/slplink.c	f8e8e8930009537d78896b001d6a295979c9e78d
+++ libpurple/protocols/msnp9/slplink.c	afa569ce08d0019c42efd92b7b84ecd104b38451
@@ -477,6 +477,7 @@ msn_slplink_send_ack(MsnSlpLink *slplink
 #endif
 
 	msn_slplink_send_slpmsg(slplink, slpmsg);
+	msn_slpmsg_destroy(slpmsg);
 }
 
 static void
@@ -603,7 +604,7 @@ msn_slplink_process_msg(MsnSlpLink *slpl
 		/* fseek(slpmsg->fp, offset, SEEK_SET); */
 		len = fwrite(data, 1, len, slpmsg->fp);
 	}
-	else if (slpmsg->size)
+	else if (slpmsg->size && slpmsg->buffer)
 	{
 		if (G_MAXSIZE - len < offset || (offset + len) > slpmsg->size)
 		{


More information about the Commits mailing list