diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-07 21:43:10 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-07 21:43:10 +0000 |
commit | e2005ee135636f2d0be2bb46bff7ced81175415b (patch) | |
tree | 6a4322b362e36542b7689ec98bfcd265619a2bff /apps | |
parent | 19e8dc973ba0b16d8c0b6efbe5da0ec516d74f7e (diff) |
If openstream fails, then we crash (Issue 8564)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@49833 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dictate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_dictate.c b/apps/app_dictate.c index 91a1650ea..c54457360 100644 --- a/apps/app_dictate.c +++ b/apps/app_dictate.c @@ -257,7 +257,8 @@ static int dictate_exec(struct ast_channel *chan, void *data) if (lastop != DFLAG_PLAY) { lastop = DFLAG_PLAY; ast_closestream(fs); - fs = ast_openstream(chan, path, chan->language); + if (!(fs = ast_openstream(chan, path, chan->language))) + break; ast_seekstream(fs, samples, SEEK_SET); chan->stream = NULL; } |