projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb0fe7
)
Make sure o->chan is non-NULL
author
Mark Spencer
<markster@digium.com>
Fri, 25 Jul 2003 15:32:02 +0000
(15:32 +0000)
committer
Mark Spencer
<markster@digium.com>
Fri, 25 Jul 2003 15:32:02 +0000
(15:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1222
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_dial.c
patch
|
blob
|
history
diff --git
a/apps/app_dial.c
b/apps/app_dial.c
index
939e949
..
d2db693
100755
(executable)
--- 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 */