summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-19 20:12:31 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-19 20:12:31 +0000
commit307c04d888109f9297aaadb63f687f175795973c (patch)
treeee8ce1b15f08c2ab0427623bfe6792a896bc9cbe /src
parentbe10eab6ce68d4f06cc7b14bc2fca35e005ce6b5 (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
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp3
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);