aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-02 20:23:20 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-02 20:23:20 +0000
commitedb9246c66eb49322d3bdd53debb40cf3e387781 (patch)
treed1db98e32afbb0d1f56588a93f07ee9014fa2082 /channels/chan_skinny.c
parentec5c90ad630f7c5b5fedc01a2b4016e2c754759d (diff)
Merged revisions 77993 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #10325) ........ r77993 | qwell | 2007-08-02 15:22:40 -0500 (Thu, 02 Aug 2007) | 5 lines If a device disconnects, the session will go away. If this happens during call setup, we need to give up. Issue 10325. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77994 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r--channels/chan_skinny.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 78d6cb469..6a693df02 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -2935,6 +2935,11 @@ static int skinny_indicate(struct ast_channel *ast, int ind, const void *data, s
struct skinnysession *s = d->session;
char exten[AST_MAX_EXTENSION] = "";
+ if (!s) {
+ ast_log(LOG_NOTICE, "Asked to indicate '%s' condition on channel %s, but session does not exist.\n", control2str(ind), ast->name);
+ return -1;
+ }
+
ast_copy_string(exten, S_OR(ast->macroexten, ast->exten), sizeof(exten));
if (skinnydebug)