diff options
author | Damien Wedhorn <voip@facts.com.au> | 2011-12-08 06:59:01 +0000 |
---|---|---|
committer | Damien Wedhorn <voip@facts.com.au> | 2011-12-08 06:59:01 +0000 |
commit | 5952117559fdb6fb22c9415ba9c1a75e1d9e205b (patch) | |
tree | dd349326e6f4e6e065b43cc592a8b5099b19d305 /channels | |
parent | 395814c33e63e650822e483cb21e00f11a431f02 (diff) |
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
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_skinny.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 37997472d..f65d377cc 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -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) { |