[asterisk-commits] tilghman: branch 1.4 r49834 - in /branches/1.4: ./ apps/app_dictate.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jan 7 14:44:53 MST 2007


Author: tilghman
Date: Sun Jan  7 15:44:52 2007
New Revision: 49834

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49834
Log:
Merged revisions 49833 via svnmerge from 
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)

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/apps/app_dictate.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/apps/app_dictate.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_dictate.c?view=diff&rev=49834&r1=49833&r2=49834
==============================================================================
--- branches/1.4/apps/app_dictate.c (original)
+++ branches/1.4/apps/app_dictate.c Sun Jan  7 15:44:52 2007
@@ -267,7 +267,8 @@
 						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;
 						}



More information about the asterisk-commits mailing list