aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-13 00:11:09 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-13 00:11:09 +0000
commit64ef304ee2343cad2b43e0aee1776d4c2f1b80bd (patch)
treec18634611681d34b6996aa6270603e5a304c5ad3 /main
parent38e7d7b10602ea2f90836a1a1cd063a50f3ae40a (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@92696 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c
index bb9037cdf..db347d65b 100644
--- a/main/config.c
+++ b/main/config.c
@@ -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",