]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 49833 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 7 Jan 2007 21:44:52 +0000 (21:44 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 7 Jan 2007 21:44:52 +0000 (21:44 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r49833 | tilghman | 2007-01-07 15:43:10 -0600 (Sun, 07 Jan 2007) | 2 lines

If openstream fails, then we crash (Issue 8564)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49834 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dictate.c

index 0c46118e47fdcd9d6b204a914fc701f4bc3cd3ab..16a79b3a5c6a362c710e90cbb840263a6f7a38fe 100644 (file)
@@ -267,7 +267,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;
                                                }