diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-01 13:04:10 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-01 13:04:10 +0100 |
commit | 1066fae0407abb79f973cd99a42479136a62d696 (patch) | |
tree | 314ebd6169ab2e91e74d03b9d7fb2a67fd2fb3c4 /src | |
parent | 1fa541b76f9ea18bc573fd3ff0c27ecd739424ee (diff) |
Fix NULL dereference on rehash when there is a fatal error in the configuration of connect classes
Fixes issue #780 reported by @JDowny
Diffstat (limited to 'src')
-rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index e8707cc3e..060f66d16 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -743,7 +743,10 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) User* user = useruid.empty() ? NULL : ServerInstance->FindNick(useruid); if (!valid) + { ServerInstance->Logs->Log("CONFIG",DEFAULT, "There were errors in your configuration file:"); + Classes.clear(); + } while (errstr.good()) { |