From: Doug Bailey Date: Fri, 21 Nov 2008 15:53:49 +0000 (+0000) Subject: Add fix to prevent crash during reload if there is an outstanding MWI registration... X-Git-Tag: 1.6.2.0-beta1~805 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d68e8b8e02757737ecf8372283722c2c8874207c;p=thirdparty%2Fasterisk.git Add fix to prevent crash during reload if there is an outstanding MWI registration message pending. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158315 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 103c295a03..f295addd48 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4985,6 +4985,10 @@ static void __sip_destroy(struct sip_pvt *p, int lockowner, int lockdialoglist) p->registry = registry_unref(p->registry, "delete p->registry"); } + if (p->mwi) { + p->mwi->call = NULL; + } + if (dumphistory) sip_dump_history(p);