diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 20:12:31 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 20:12:31 +0000 |
commit | 307c04d888109f9297aaadb63f687f175795973c (patch) | |
tree | ee8ce1b15f08c2ab0427623bfe6792a896bc9cbe | |
parent | be10eab6ce68d4f06cc7b14bc2fca35e005ce6b5 (diff) |
Fix null deref on Cleanup() called before FakeUser creation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11926 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 3c9643486..d9f1d0423 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -111,7 +111,8 @@ void InspIRCd::Cleanup() /* Delete objects dynamically allocated in constructor (destructor would be more appropriate, but we're likely exiting) */ /* Must be deleted before modes as it decrements modelines */ - FakeClient->cull(); + if (FakeClient) + FakeClient->cull(); DeleteZero(this->FakeClient); DeleteZero(this->Users); DeleteZero(this->Modes); |