From c85a6bea77568739df592a90fba5ddf56cb5cf04 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 3 Feb 2010 16:37:23 +0000 Subject: Fix segfault on GRELOADMODULE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12362 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modmanager_dynamic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index d30f9f595..40bced74a 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -169,7 +169,8 @@ namespace { ServerInstance->GlobalCulls.Apply(); delete dll; bool rv = ServerInstance->Modules->Load(name.c_str()); - callback->Call(rv); + if (callback) + callback->Call(rv); ServerInstance->GlobalCulls.AddItem(this); } }; -- cgit v1.2.3