aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-07 17:45:56 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-07 17:45:56 +0000
commita3930904186edb70ffe4e6c9028e9a7594c9bc92 (patch)
tree372973f208e5c0f4734bcb81ef69d47d99662268 /channels
parent3e3beb027e8284d58e540b77fbba6a906bafdf86 (diff)
Merged revisions 222543 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r222543 | dvossel | 2009-10-07 12:44:52 -0500 (Wed, 07 Oct 2009) | 14 lines Merged revisions 222542 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r222542 | dvossel | 2009-10-07 12:41:21 -0500 (Wed, 07 Oct 2009) | 8 lines crash on transfer handle_invite_replaces() attempts to uplock a pvt's owner channel without first verifing that it exists. (issue #16027) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@222544 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7f473d9f8..1463854d4 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18778,7 +18778,10 @@ static int handle_invite_replaces(struct sip_pvt *p, struct sip_request *req, in
can't harm */
transmit_response_with_sdp(p, "200 OK", req, XMIT_RELIABLE, FALSE);
/* Do something more clever here */
- ast_channel_unlock(c);
+ if (c) {
+ *nounlock = 1;
+ ast_channel_unlock(c);
+ }
ast_channel_unlock(replacecall);
sip_pvt_unlock(p->refer->refer_call);
return 1;