From 942d25e282e5c0d3442a154d8db8869944ac58eb Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 Feb 2008 21:48:09 +0000 Subject: Fix a null pointer dereference caused by my reordering/moving stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8792 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7eb52ebc8..b7e8ff5ae 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -308,7 +308,10 @@ InspIRCd::InspIRCd(int argc, char** argv) delete SEF; this->s_signal = 0; - + + // Create base manager classes early, so nothing breaks + this->Users = new UserManager(this); + this->Users->unregistered_count = 0; this->Users->clientlist = new user_hash(); @@ -325,7 +328,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->Timers = new TimerManager(this); this->Parser = new CommandParser(this); this->XLines = new XLineManager(this); - this->Users = new UserManager(this); this->Config->argv = argv; this->Config->argc = argc; -- cgit v1.3.1-10-gc9f91