]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix CallInit overriding the error from dlopen.
authorSadie Powell <sadie@witchery.services>
Tue, 19 May 2020 19:22:36 +0000 (20:22 +0100)
committerSadie Powell <sadie@witchery.services>
Tue, 19 May 2020 19:22:36 +0000 (20:22 +0100)
src/dynamic.cpp

index 609766c13eb15d38493ba117839369a7c06d011a..3df91e41f4037eb2f3fc1d550e3f4a229c2786a9 100644 (file)
@@ -69,6 +69,9 @@ DLLManager::~DLLManager()
 
 Module* DLLManager::CallInit()
 {
+       if (!lib)
+               return NULL;
+
        const unsigned long* abi = GetSymbol<const unsigned long>(MODULE_STR_ABI);
        if (!abi)
        {