aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-10 13:38:40 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-10 13:38:40 +0000
commit7e7b72c925a1716971b1bed9ab2f79faf35632db (patch)
tree9c9964ddd12428ace71491db2d61ec145fdb6ae8 /channels
parentef1f2aa956e0e3fa747aec3626d3d8e8695a9da5 (diff)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@121498 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6cca61f85..a092b2790 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4281,7 +4281,7 @@ static int __sip_destroy(struct sip_pvt *p, int lockowner, int lockdialoglist)
}
/* Remove link from peer to subscription of MWI */
- if (p->relatedpeer && p->relatedpeer->mwipvt)
+ if (p->relatedpeer && p->relatedpeer->mwipvt == p)
p->relatedpeer->mwipvt = dialog_unref(p->relatedpeer->mwipvt);
if (dumphistory)