projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a3133
)
Don't attempt to proceed if our internal parser indicates an invalid file.
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Wed, 30 Jun 2010 01:01:14 +0000
(
01:01
+0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Wed, 30 Jun 2010 01:01:14 +0000
(
01:01
+0000)
(closes issue #17560)
Reported by: Nick_Lewis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273142
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/config.c
patch
|
blob
|
history
diff --git
a/main/config.c
b/main/config.c
index
24c23d6
..
9527baa
100644
(file)
--- a/
main/config.c
+++ b/
main/config.c
@@
-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;
}