[asterisk-commits] file: branch 1.4 r121495 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 10 08:34:27 CDT 2008


Author: file
Date: Tue Jun 10 08:34:27 2008
New Revision: 121495

URL: http://svn.digium.com/view/asterisk?view=rev&rev=121495
Log:
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

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=121495&r1=121494&r2=121495
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Jun 10 08:34:27 2008
@@ -3115,7 +3115,9 @@
 
 	/* 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);
 	}
 




More information about the asterisk-commits mailing list