diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-25 15:32:02 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-25 15:32:02 +0000 |
commit | 3d5784cb8e688e6c9b70eeeb2bfeb3ff8e719128 (patch) | |
tree | 99ff5bd14470ccae9ff7cdd5bba323fcaea67961 | |
parent | 0bc8eb5b1268b49bb8bf5c581c15aa6a87395066 (diff) |
Make sure o->chan is non-NULL
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1222 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_dial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 939e949d1..d2db6932f 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -187,7 +187,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu *allowredir_out = o->allowredirect_out; *allowdisconnect = o->allowdisconnect; } - } else if (o->chan == winner) { + } else if (o->chan && (o->chan == winner)) { if (strlen(o->chan->call_forward)) { char tmpchan[256]; /* Before processing channel, go ahead and check for forwarding */ |