From d578a5372485cd8509d5eb4fe425506c7f183be4 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Tue, 4 Aug 2009 21:43:49 +0300 Subject: [PATCH] Possible fix for crash reported in bug #2795132 Add NULL check for session in sipe_process_imdn(). --- src/sipe-conf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sipe-conf.c b/src/sipe-conf.c index 57e44641..4e511bbf 100644 --- a/src/sipe-conf.c +++ b/src/sipe-conf.c @@ -865,6 +865,10 @@ sipe_process_imdn(struct sipe_account_data *sip, gchar *message; session = sipe_session_find_chat_by_callid(sip, call_id); + if (!session) { + purple_debug_info("sipe", "sipe_process_imdn: unable to find conf session with call_id=%s\n", call_id); + return; + } xn_imdn = xmlnode_from_str(msg->body, msg->bodylen); message_id = xmlnode_get_data(xmlnode_get_child(xn_imdn, "message-id")); -- 2.11.4.GIT