[asterisk-commits] wedhorn: trunk r347490 - /trunk/channels/chan_skinny.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 8 00:59:05 CST 2011
Author: wedhorn
Date: Thu Dec 8 00:59:01 2011
New Revision: 347490
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=347490
Log:
Fix segfault on answer.
Fix a segfault if an attempt to answer a call is made between when
the inbound call gives up (and the channel is removed) and when the
device is notified and removes the call from the device.
Modified:
trunk/channels/chan_skinny.c
Modified: trunk/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=347490&r1=347489&r2=347490
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Thu Dec 8 00:59:01 2011
@@ -5935,7 +5935,9 @@
if (reference) {
sub = find_subchannel_by_instance_reference(d, instance, reference);
- l = sub->line;
+ if (sub) {
+ l = sub->line;
+ }
}
if (!sub) {
if (instance) {
More information about the asterisk-commits
mailing list