[asterisk-commits] mjordan: branch 12 r399681 - /branches/12/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 24 13:58:48 CDT 2013
Author: mjordan
Date: Tue Sep 24 13:58:46 2013
New Revision: 399681
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399681
Log:
app_queue: Initialize array holding MixMonitor exec options
If the channel variable MONITOR_EXEC is set, app_queue will pass the specified
execution parameters to the MixMonitor application when a queue is recorded.
If that channel variable is not set, the buffer that holds the escaped value
was not being initialized to NULL, and so would be passed to the MixMonitor
application with garbage. Hilarity ensued as app_mixmonitor attempted to
execute gobeldy-gook.
Modified:
branches/12/apps/app_queue.c
Modified: branches/12/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/apps/app_queue.c?view=diff&rev=399681&r1=399680&r2=399681
==============================================================================
--- branches/12/apps/app_queue.c (original)
+++ branches/12/apps/app_queue.c Tue Sep 24 13:58:46 2013
@@ -5910,7 +5910,7 @@
char escaped_filename[256];
char file_with_ext[256];
char mixmonargs[1512];
- char escaped_monitor_exec[1024];
+ char escaped_monitor_exec[1024] = "\0";
const char *monitor_options;
const char *monitor_exec;
More information about the asterisk-commits
mailing list