[asterisk-commits] russell: trunk r270726 - /trunk/channels/sig_analog.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 15 17:48:15 CDT 2010
Author: russell
Date: Tue Jun 15 17:48:12 2010
New Revision: 270726
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=270726
Log:
Don't blow up if an ast_channel doesn't get allocated.
Modified:
trunk/channels/sig_analog.c
Modified: trunk/channels/sig_analog.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sig_analog.c?view=diff&rev=270726&r1=270725&r2=270726
==============================================================================
--- trunk/channels/sig_analog.c (original)
+++ trunk/channels/sig_analog.c Tue Jun 15 17:48:12 2010
@@ -410,7 +410,9 @@
}
c = p->calls->new_ast_channel(p->chan_pvt, state, startpbx, sub, requestor);
- ast_string_field_set(c, call_forward, p->call_forward);
+ if (c) {
+ ast_string_field_set(c, call_forward, p->call_forward);
+ }
p->subs[sub].owner = c;
if (!p->owner) {
p->owner = c;
More information about the asterisk-commits
mailing list