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:
@@ -392,7 +392,7 @@ static int do_reload(int loading)
|
||||
enabled = ast_true(enabled_value);
|
||||
}
|
||||
if ((interval_value = ast_variable_retrieve(config, "general", "refreshinterval"))) {
|
||||
if (sscanf(interval_value, "%d", &interval) < 1)
|
||||
if (sscanf(interval_value, "%30d", &interval) < 1)
|
||||
ast_log(LOG_WARNING, "Unable to convert '%s' to a numeric value.\n", interval_value);
|
||||
else if (interval < 0)
|
||||
ast_log(LOG_WARNING, "Invalid refresh interval '%d' specified, using default\n", interval);
|
||||
|
||||
Reference in New Issue
Block a user