aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-11-16 22:14:20 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-11-16 22:14:20 +0100
commitc957aaa4110c4b8f2276a549f13c0ecd6e9277db (patch)
tree8775c23d8477f8d2880470925302d17d6ea90741
parentad7e3b1d1eaf649b0f5f035a7daf0d1ba2669174 (diff)
downloadstrongswan-c957aaa4110c4b8f2276a549f13c0ecd6e9277db.tar.bz2
strongswan-c957aaa4110c4b8f2276a549f13c0ecd6e9277db.tar.xz
load IMCs and IMVs with RTLD_LAZY
-rw-r--r--src/libcharon/plugins/tnc_imc/tnc_imc.c2
-rw-r--r--src/libcharon/plugins/tnc_imv/tnc_imv.c2
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 fa5e2e499..174084436 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 29161f513..42d2ab064 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());