[asterisk-commits] twilson: branch 1.6.2 r229017 - in /branches/1.6.2: ./ channels/chan_local.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 9 16:59:19 CST 2009
Author: twilson
Date: Mon Nov 9 16:59:14 2009
New Revision: 229017
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229017
Log:
Merged revisions 229015 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r229015 | twilson | 2009-11-09 16:50:22 -0600 (Mon, 09 Nov 2009) | 8 lines
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
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/channels/chan_local.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_local.c?view=diff&rev=229017&r1=229016&r2=229017
==============================================================================
--- branches/1.6.2/channels/chan_local.c (original)
+++ branches/1.6.2/channels/chan_local.c Mon Nov 9 16:59:14 2009
@@ -176,6 +176,12 @@
{
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);
More information about the asterisk-commits
mailing list