summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-09-24 18:59:05 +0000
committerMatthew Jordan <mjordan@digium.com>2013-09-24 18:59:05 +0000
commit0618d8949943f651b6e459c2bd00ced4836c7da8 (patch)
tree3b7aebf8641c9dabe7860d8ea0a79f74acd3b166
parente7d49d28eace10a8120da0bf05e7287029a2d00e (diff)
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. ........ Merged revisions 399681 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 0dd820bea..e3ab53b54 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -5910,7 +5910,7 @@ static void setup_mixmonitor(struct queue_ent *qe, const char *filename)
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;