Merged revisions 76174 via svnmerge from
authorJason Parker <jparker@digium.com>
Fri, 20 Jul 2007 20:33:34 +0000 (20:33 +0000)
committerJason Parker <jparker@digium.com>
Fri, 20 Jul 2007 20:33:34 +0000 (20:33 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76174 | qwell | 2007-07-20 15:32:55 -0500 (Fri, 20 Jul 2007) | 2 lines

It's possible for sub->owner to be NULL here if you cancel the call immediately after/during sending a digit.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76175 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index f9f8ec1..4358997 100644 (file)
@@ -4463,7 +4463,7 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s)
 
                sub = find_subchannel_by_instance_reference(d, lineInstance, callReference);
 
-               if (sub && (sub->owner->_state <  AST_STATE_UP)) {
+               if (sub && (sub->owner && sub->owner->_state <  AST_STATE_UP)) {
                        char dgt;
                        int digit = letohl(req->data.keypad.button);