mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@347490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5935,7 +5935,9 @@ static int handle_offhook_message(struct skinny_req *req, struct skinnysession *
|
||||
|
||||
if (reference) {
|
||||
sub = find_subchannel_by_instance_reference(d, instance, reference);
|
||||
l = sub->line;
|
||||
if (sub) {
|
||||
l = sub->line;
|
||||
}
|
||||
}
|
||||
if (!sub) {
|
||||
if (instance) {
|
||||
|
||||
Reference in New Issue
Block a user