From 9aefadd7c18457b8ac5d6d7d8c75e0b5264cbe4e Mon Sep 17 00:00:00 2001 From: BJ Weschke Date: Mon, 20 Oct 2008 05:07:25 +0000 Subject: Do NOT attempt to do anything with the ast_config struct when it's been returned as INVALID by the config file interpreter. (closes issue #13741) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151246 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/pbx_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbx/pbx_config.c') diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 798a098bb..2899ec1a7 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1412,7 +1412,7 @@ static int pbx_load_config(const char *config_file) struct ast_flags config_flags = { 0 }; char lastextension[256]; cfg = ast_config_load(config_file, config_flags); - if (!cfg) + if (!cfg || cfg == CONFIG_STATUS_FILEINVALID) return 0; /* Use existing config to populate the PBX table */ -- cgit v1.2.3