Skip to content
Snippets Groups Projects
Commit c8b8c90f authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Don't attempt to proceed if our internal parser indicates an invalid file.

(closes issue #17560)
 Reported by: Nick_Lewis


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 62a3133d
No related branches found
No related tags found
No related merge requests found
......@@ -1902,7 +1902,9 @@ int read_config_maps(void)
configtmp = ast_config_new();
configtmp->max_include_level = 1;
config = ast_config_internal_load(extconfig_conf, configtmp, flags, "", "extconfig");
if (!config) {
if (config == CONFIG_STATUS_FILEINVALID) {
return -1;
} else if (!config) {
ast_config_destroy(configtmp);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment