From 307c04d888109f9297aaadb63f687f175795973c Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 19 Oct 2009 20:12:31 +0000 Subject: 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 --- src/inspircd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3