diff options
-rw-r--r-- | src/inspircd_io.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index de3d23689..a01048e85 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -355,6 +355,13 @@ bool LoadConf(const char* filename, std::stringstream *target, std::stringstream std::string newstuff = merge.str(); *target << newstuff; } + else + { + // the error propogates up to its parent recursively + // causing the config reader to bail at the top level. + fclose(conf); + return false; + } } else { |