# HG changeset patch # User Daniel Atallah # Date 1231991698 0 # Node ID 36897ddd3e083986c241f3355d341afe99ac16fd # Parent ed3409c4ccd674d212eac51727d204b5f7e114e0 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. diff -r ed3409c4ccd6 -r 36897ddd3e08 libpurple/protocols/msn/slplink.c --- 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);