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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@347490
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (reference) {
sub = find_subchannel_by_instance_reference(d, instance, reference);
- l = sub->line;
+ if (sub) {
+ l = sub->line;
+ }
}
if (!sub) {
if (instance) {