From fec34388a35a01a486eedfeab0a8d3aead3ebb84 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 May 2005 15:59:52 +0000 Subject: Made erroneous included configs cause the reader to bail git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1554 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 { -- cgit v1.2.3