Skip to content
Snippets Groups Projects
Commit d6b5df87 authored by Terry Wilson's avatar Terry Wilson
Browse files

Don't crash when bridge->tech_pvt == NULL

This is a similar solution to what is in place for chan_agent

(closes issue #16003)
Reported by: atis
Tested by: twilson


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@229015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 182ac0c5
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,12 @@ static struct ast_channel *local_bridgedchannel(struct ast_channel *chan, struct
struct local_pvt *p = bridge->tech_pvt;
struct ast_channel *bridged = bridge;
if (!p) {
ast_debug(1, "Asked for bridged channel on '%s'/'%s', returning <none>\n",
chan->name, bridge->name);
return NULL;
}
ast_mutex_lock(&p->lock);
if (ast_test_flag(p, LOCAL_BRIDGE)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment