mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
If a typo is found in a config file, we previous continued on with what was already loaded.
We do not want to do this (see bug below for details). This makes it so that if a [ is found without a ], the entire config will fail, and nothing in it will be loaded. Isue #10690. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@92696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -745,7 +745,7 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat,
|
||||
if(!ast_strlen_zero(exec_file))
|
||||
unlink(exec_file);
|
||||
if(!do_include)
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
} else {
|
||||
ast_log(LOG_WARNING, "Directive '#%s' needs an argument (%s) at line %d of %s\n",
|
||||
|
Reference in New Issue
Block a user