diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-15 18:12:24 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-15 18:12:24 +0000 |
commit | 9f71bf15bbc81d582fcc3fc06704f7c791349f51 (patch) | |
tree | e0cae8ae42a9f431737206b74805d8e3f4c0ae67 /channels | |
parent | 9b133b4c0b65cc32100bc566a0d6cb6f10a3b8f5 (diff) |
Merged revisions 164350 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r164350 | file | 2008-12-15 14:11:21 -0400 (Mon, 15 Dec 2008) | 6 lines
Do not try to unlock a non-existant channel if the transfer fails.
(closes issue #13800)
Reported by: dwagner
Patches:
asterisk-1.4.22-chan-sip-nullp.patch uploaded by tweety (license 608)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164351 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 37ae2ca24..30d611cc1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18371,7 +18371,9 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int sip_pvt_unlock(p); if (p->refer->refer_call) { sip_pvt_unlock(p->refer->refer_call); - ast_channel_unlock(p->refer->refer_call->owner); + if (p->refer->refer_call->owner) { + ast_channel_unlock(p->refer->refer_call->owner); + } } p->invitestate = INV_COMPLETED; return -1; |