]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libtnccs: Correctly read dlopen_use_rtld_now option
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Sep 2017 16:07:08 +0000 (18:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 18 Sep 2017 10:07:26 +0000 (12:07 +0200)
Fixes: 50e4aeb22f49 ("libtnccs: Optionally use RTLD_NOW to load IMC/IMVs with dlopen()")
src/libtnccs/plugins/tnc_imc/tnc_imc.c
src/libtnccs/plugins/tnc_imv/tnc_imv.c

index 822df3f27769bb5dd760765c08d13291a9d2fa47..e88ac42b610b5840ba889341e6670913e3380186 100644 (file)
@@ -354,7 +354,7 @@ imc_t* tnc_imc_create(char *name, char *path)
        this = tnc_imc_create_empty(name);
 
        if (lib->settings->get_bool(lib->settings, "%s.dlopen_use_rtld_now",
-                                                               lib->ns, FALSE))
+                                                               FALSE, lib->ns))
        {
                flag = RTLD_NOW;
        }
index 9a03041721e932f89d47773529a2583b874acce4..e6c53b74f6ff1b19ddd9785f4bc60ca5b6f01596 100644 (file)
@@ -350,7 +350,7 @@ imv_t* tnc_imv_create(char *name, char *path)
        this = tnc_imv_create_empty(name);
 
        if (lib->settings->get_bool(lib->settings, "%s.dlopen_use_rtld_now",
-                                                               lib->ns, FALSE))
+                                                               FALSE, lib->ns))
        {
                flag = RTLD_NOW;
        }