From 78465ad2a35ef7d5eae23bbd3480492d5c35a6e9 Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Thu, 13 Dec 2007 00:18:04 +0000 Subject: Merged revisions 92696 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #10690) ........ r92696 | qwell | 2007-12-12 18:11:09 -0600 (Wed, 12 Dec 2007) | 7 lines 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. Issue 10690. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92697 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/config.c b/main/config.c index 379aa2b36..f2b54bc2d 100644 --- a/main/config.c +++ b/main/config.c @@ -1008,7 +1008,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; /* XXX otherwise what ? the default return is 0 anyways */ } else { -- cgit v1.2.3