[asterisk-commits] tilghman: branch 1.2 r49833 - /branches/1.2/apps/app_dictate.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jan 7 14:43:11 MST 2007


Author: tilghman
Date: Sun Jan  7 15:43:10 2007
New Revision: 49833

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49833
Log:
If openstream fails, then we crash (Issue 8564)

Modified:
    branches/1.2/apps/app_dictate.c

Modified: branches/1.2/apps/app_dictate.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_dictate.c?view=diff&rev=49833&r1=49832&r2=49833
==============================================================================
--- branches/1.2/apps/app_dictate.c (original)
+++ branches/1.2/apps/app_dictate.c Sun Jan  7 15:43:10 2007
@@ -257,7 +257,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