diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-03 16:37:23 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-03 16:37:23 +0000 |
commit | c85a6bea77568739df592a90fba5ddf56cb5cf04 (patch) | |
tree | 3c9a8fd54d9df4e94a9e67be4d42efdd203a3a17 /src | |
parent | 04cfaea87edd1b4b742cb607ea69ece760c460aa (diff) |
Fix segfault on GRELOADMODULE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12362 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modmanager_dynamic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } }; |