diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-09 19:29:39 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-09 19:29:39 +0000 |
commit | 9e83b1e7371fa5fce5e017a88279aaf899cd4966 (patch) | |
tree | 53103ba2cdc93f34aaab79940fe98057dbdb6428 /apps | |
parent | c33785c95618bd699935e03eace89f8046d0e3e5 (diff) |
Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce
(closes issue #16731)
Reported by: sebele67
Patches:
issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@251410 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_parkandannounce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index 9e9f1604d..9b1a388a7 100644 --- a/apps/app_parkandannounce.c +++ b/apps/app_parkandannounce.c @@ -112,7 +112,7 @@ static int parkandannounce_exec(struct ast_channel *chan, void *data) timeout *= 1000; } dial = strsep(&s, "|"); - if(!dial) { + if (ast_strlen_zero(dial)) { ast_log(LOG_WARNING, "PARK: A dial resource must be specified i.e: Console/dsp or Zap/g1/5551212\n"); ast_module_user_remove(u); return -1; |