From: Andreas Steffen Date: Tue, 16 Nov 2010 21:14:20 +0000 (+0100) Subject: load IMCs and IMVs with RTLD_LAZY X-Git-Tag: 4.5.1~506 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c957aaa4110c4b8f2276a549f13c0ecd6e9277db;p=thirdparty%2Fstrongswan.git load IMCs and IMVs with RTLD_LAZY --- 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());