aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-10 19:55:33 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-10 19:55:33 +0000
commitd6d5d65345f869d17cd13525387a735b4f7e5fcd (patch)
tree450ba796201a60768f18ee898b85d779c1e6d471 /channels
parente33ff1c152d40b7d4c5cc736cb1bb64dacfa7b9f (diff)
Be sure that we're not about to set bridgepvt NULL prior to dereferencing it.
(closes issue #11775) Reported by: fujin git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114045 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 ef7e5171b..c21815e23 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14158,7 +14158,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
struct ast_channel *bridgepeer = NULL;
struct sip_pvt *bridgepvt = NULL;
if ((bridgepeer = ast_bridged_channel(p->owner))) {
- if (bridgepeer->tech == &sip_tech || bridgepeer->tech == &sip_tech_info) {
+ if ((bridgepeer->tech == &sip_tech || bridgepeer->tech == &sip_tech_info) && !ast_check_hangup(bridgepeer)) {
bridgepvt = (struct sip_pvt*)bridgepeer->tech_pvt;
/* Does the bridged peer have T38 ? */
if (bridgepvt->t38.state == T38_ENABLED) {