From 1066fae0407abb79f973cd99a42479136a62d696 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 1 Mar 2014 13:04:10 +0100 Subject: Fix NULL dereference on rehash when there is a fatal error in the configuration of connect classes Fixes issue #780 reported by @JDowny --- src/configreader.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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()) { -- cgit v1.2.3