load IMCs and IMVs with RTLD_LAZY
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 16 Nov 2010 21:14:20 +0000 (22:14 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 16 Nov 2010 21:14:20 +0000 (22:14 +0100)
src/libcharon/plugins/tnc_imc/tnc_imc.c
src/libcharon/plugins/tnc_imv/tnc_imv.c

index fa5e2e4..1740844 100644 (file)
@@ -158,7 +158,7 @@ imc_t* tnc_imc_create(char *name, char *path)
                .path = path,
        );
 
-       this->handle = dlopen(path, RTLD_NOW);
+       this->handle = dlopen(path, RTLD_LAZY);
        if (!this->handle)
        {
                DBG1(DBG_TNC, "IMC \"%s\" failed to load: %s", name, dlerror());
index 29161f5..42d2ab0 100644 (file)
@@ -158,7 +158,7 @@ imv_t* tnc_imv_create(char *name, char *path)
                .path = path,
        );
 
-       this->handle = dlopen(path, RTLD_NOW);
+       this->handle = dlopen(path, RTLD_LAZY);
        if (!this->handle)
        {
                DBG1(DBG_TNC, "IMV \"%s\" failed to load: %s", name, dlerror());