diff options
| author | 2005-05-29 15:59:52 +0000 | |
|---|---|---|
| committer | 2005-05-29 15:59:52 +0000 | |
| commit | fec34388a35a01a486eedfeab0a8d3aead3ebb84 (patch) | |
| tree | 457a1d9cadee10b14bef3d5be00ae250e6f2b388 /src/inspircd_io.cpp | |
| parent | Added include stack to detect looped includes (diff) | |
| download | inspircd++-fec34388a35a01a486eedfeab0a8d3aead3ebb84.tar.gz inspircd++-fec34388a35a01a486eedfeab0a8d3aead3ebb84.tar.bz2 inspircd++-fec34388a35a01a486eedfeab0a8d3aead3ebb84.zip | |
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
Diffstat (limited to 'src/inspircd_io.cpp')
| -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 { |
