diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-10 13:36:13 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-10 13:36:13 +0000 |
commit | 97f03a1be3849874f90db97f7c75bb56d475eb8d (patch) | |
tree | 40e41905cf02fe7e0fc31bf9c6763c51cfb45b9f | |
parent | 54f9c86dc5c210cc9208bddc119e8885cda98392 (diff) |
Merged revisions 121495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r121495 | file | 2008-06-10 10:34:27 -0300 (Tue, 10 Jun 2008) | 4 lines
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: http://svn.digium.com/svn/asterisk/trunk@121496 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6da662f5e..0962fc7e9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2485,7 +2485,7 @@ static void *dialog_unlink_all(struct sip_pvt *dialog, int lockowner, int lockdi dialog->stateid = -1; /* shouldn't we 'zero' this out? */ } /* Remove link from peer to subscription of MWI */ - if (dialog->relatedpeer && dialog->relatedpeer->mwipvt) + if (dialog->relatedpeer && dialog->relatedpeer->mwipvt == dialog) dialog->relatedpeer->mwipvt = dialog_unref(dialog->relatedpeer->mwipvt, "delete ->relatedpeer->mwipvt"); if (dialog->relatedpeer && dialog->relatedpeer->call == dialog) dialog->relatedpeer->call = dialog_unref(dialog->relatedpeer->call, "unset the relatedpeer->call field in tandem with relatedpeer field itself"); |