From c957aaa4110c4b8f2276a549f13c0ecd6e9277db Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 16 Nov 2010 22:14:20 +0100 Subject: [PATCH] load IMCs and IMVs with RTLD_LAZY --- src/libcharon/plugins/tnc_imc/tnc_imc.c | 2 +- src/libcharon/plugins/tnc_imv/tnc_imv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc.c b/src/libcharon/plugins/tnc_imc/tnc_imc.c index fa5e2e499e..174084436b 100644 --- a/src/libcharon/plugins/tnc_imc/tnc_imc.c +++ b/src/libcharon/plugins/tnc_imc/tnc_imc.c @@ -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()); diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv.c b/src/libcharon/plugins/tnc_imv/tnc_imv.c index 29161f5134..42d2ab0641 100644 --- a/src/libcharon/plugins/tnc_imv/tnc_imv.c +++ b/src/libcharon/plugins/tnc_imv/tnc_imv.c @@ -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()); -- 2.47.2