mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1451,7 +1451,7 @@ static int do_reload(int reload)
|
||||
batchsafeshutdown = ast_true(batchsafeshutdown_value);
|
||||
}
|
||||
if ((size_value = ast_variable_retrieve(config, "general", "size"))) {
|
||||
if (sscanf(size_value, "%d", &cfg_size) < 1)
|
||||
if (sscanf(size_value, "%30d", &cfg_size) < 1)
|
||||
ast_log(LOG_WARNING, "Unable to convert '%s' to a numeric value.\n", size_value);
|
||||
else if (cfg_size < 0)
|
||||
ast_log(LOG_WARNING, "Invalid maximum batch size '%d' specified, using default\n", cfg_size);
|
||||
@@ -1459,7 +1459,7 @@ static int do_reload(int reload)
|
||||
batchsize = cfg_size;
|
||||
}
|
||||
if ((time_value = ast_variable_retrieve(config, "general", "time"))) {
|
||||
if (sscanf(time_value, "%d", &cfg_time) < 1)
|
||||
if (sscanf(time_value, "%30d", &cfg_time) < 1)
|
||||
ast_log(LOG_WARNING, "Unable to convert '%s' to a numeric value.\n", time_value);
|
||||
else if (cfg_time < 0)
|
||||
ast_log(LOG_WARNING, "Invalid maximum batch time '%d' specified, using default\n", cfg_time);
|
||||
|
||||
Reference in New Issue
Block a user