mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-03 05:23:26 -07:00
If we are destroying a dialog only set the MWI dialog pointer on the related peer to NULL if it is the dialog currently being destroyed.
(closes issue #12828) Reported by: ramonpeek git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-1
@@ -3115,7 +3115,9 @@ static int __sip_destroy(struct sip_pvt *p, int lockowner)
|
||||
|
||||
/* Remove link from peer to subscription of MWI */
|
||||
if (p->relatedpeer) {
|
||||
p->relatedpeer->mwipvt = NULL;
|
||||
if (p->relatedpeer->mwipvt == p) {
|
||||
p->relatedpeer->mwipvt = NULL;
|
||||
}
|
||||
ASTOBJ_UNREF(p->relatedpeer, sip_destroy_peer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user