diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 00:49:21 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 00:49:21 +0000 |
commit | 6cd06e4adbdcba5aeaed16612158166a148ea77c (patch) | |
tree | 1792ea7ef85f37c8c5efc1f61a7944ce32ea0f3a /channels/chan_agent.c | |
parent | 0ccfd5de5bf363d0fd2b780199f934b0d3d6ff13 (diff) |
Check to make sure the channel pointer is present before queueing up an unhold frame on it. (issue #10046 reported by dimas)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71412 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r-- | channels/chan_agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index ac9d602cb..08c3f80bc 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -992,7 +992,7 @@ static struct ast_channel *agent_new(struct agent_pvt *p, int state) ast_mutex_unlock(&p->lock); /* For other thread to read the condition. */ return NULL; } - } + } else if (p->chan) ast_indicate(p->chan, AST_CONTROL_UNHOLD); p->owning_app = pthread_self(); /* After the above step, there should not be any blockers. */ |