aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-08 19:16:49 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-08 19:16:49 +0000
commit111e4c18b8337f0c2c02dd0fb15d9e3e70a9dbc8 (patch)
treeb6c9999705a493bd2480c96ddd233111ae889441 /apps
parent07e3491172426653a0946a5d9fdf5a6a2f893a5a (diff)
Fix a crash due to too few arguments to RetryDial.
(closes issue #14852) Reported by: junky Patches: retry_fix.diff uploaded by junky (license 177) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@187135 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_dial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 98e66ef9a..a38bcd685 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1872,7 +1872,7 @@ static int retrydial_exec(struct ast_channel *chan, void *data)
}
}
- if ((dialdata = strchr(dialdata, '|'))) {
+ if (dialdata && (dialdata = strchr(dialdata, '|'))) {
*dialdata++ = '\0';
} else {
ast_log(LOG_ERROR, "%s requires more arguments\n",rapp);