diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-20 20:32:55 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-20 20:32:55 +0000 |
commit | 88bd3d2c2abb1de4ea3aa1fe9f490aa65c444c1b (patch) | |
tree | 763edf412cb908849324dcae184d8e9d88e0d929 | |
parent | bee3b40fc7f12d85bec261457c88b80e26fd2e61 (diff) |
It's possible for sub->owner to be NULL here if you cancel the call immediately after/during sending a digit.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76174 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_skinny.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 4571c62dd..82f01b70d 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -4160,7 +4160,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); size_t len; |