changeset 24963:36897ddd3e08

This should prevent the crash in #8109 by stopping an invalid message from getting in the queue. There is still a problem farther up from here in that an invalid message shouldn't get this far - hopefully this will help track it down by providing a message at the time the issue happens instead of crashing later. Fixes #8109.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 15 Jan 2009 03:54:58 +0000
parents ed3409c4ccd6
children 8a5c0c5c71f9
files libpurple/protocols/msn/slplink.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Wed Jan 14 14:04:17 2009 +0000
+++ b/libpurple/protocols/msn/slplink.c	Thu Jan 15 03:54:58 2009 +0000
@@ -398,6 +398,8 @@
 void
 msn_slplink_queue_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg)
 {
+	g_return_if_fail(slpmsg != NULL);
+
 	slpmsg->id = slplink->slp_seq_id++;
 
 	g_queue_push_tail(slplink->slp_msg_queue, slpmsg);