mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
If openstream fails, then we crash (Issue 8564)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -257,7 +257,8 @@ static int dictate_exec(struct ast_channel *chan, void *data)
|
|||||||
if (lastop != DFLAG_PLAY) {
|
if (lastop != DFLAG_PLAY) {
|
||||||
lastop = DFLAG_PLAY;
|
lastop = DFLAG_PLAY;
|
||||||
ast_closestream(fs);
|
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);
|
ast_seekstream(fs, samples, SEEK_SET);
|
||||||
chan->stream = NULL;
|
chan->stream = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user