]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dynamic.cpp
Fix null dereference caused by tracking dummy
[user/henk/code/inspircd.git] / src / dynamic.cpp
index b993b8af579d8d8026ec56b8e92d1aab0162ce96..70d5e7cae8b5a47d278c0199ba381f284889d693 100644 (file)
@@ -11,8 +11,6 @@
  * ---------------------------------------------------
  */
 
-/* $Core */
-
 #include "inspircd.h"
 #include "dynamic.h"
 #ifndef WIN32
@@ -28,7 +26,7 @@ DLLManager::DLLManager(const char *fname)
                return;
        }
 
-       h = dlopen(fname, RTLD_NOW|RTLD_LOCAL|RTLD_NODELETE);
+       h = dlopen(fname, RTLD_NOW|RTLD_LOCAL);
        if (!h)
        {
                err = dlerror();
@@ -53,7 +51,7 @@ Module* DLLManager::callInit()
                return NULL;
 
        init_t initfn;
-       initfn.vptr = dlsym(h, "init_module");
+       initfn.vptr = dlsym(h, MODULE_INIT_STR);
        if (!initfn.vptr)
        {
                err = dlerror();