libtnccs: Correctly read dlopen_use_rtld_now option
Fixes: 50e4aeb22f ("libtnccs: Optionally use RTLD_NOW to load IMC/IMVs with dlopen()")
This commit is contained in:
@@ -354,7 +354,7 @@ imc_t* tnc_imc_create(char *name, char *path)
|
|||||||
this = tnc_imc_create_empty(name);
|
this = tnc_imc_create_empty(name);
|
||||||
|
|
||||||
if (lib->settings->get_bool(lib->settings, "%s.dlopen_use_rtld_now",
|
if (lib->settings->get_bool(lib->settings, "%s.dlopen_use_rtld_now",
|
||||||
lib->ns, FALSE))
|
FALSE, lib->ns))
|
||||||
{
|
{
|
||||||
flag = RTLD_NOW;
|
flag = RTLD_NOW;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ imv_t* tnc_imv_create(char *name, char *path)
|
|||||||
this = tnc_imv_create_empty(name);
|
this = tnc_imv_create_empty(name);
|
||||||
|
|
||||||
if (lib->settings->get_bool(lib->settings, "%s.dlopen_use_rtld_now",
|
if (lib->settings->get_bool(lib->settings, "%s.dlopen_use_rtld_now",
|
||||||
lib->ns, FALSE))
|
FALSE, lib->ns))
|
||||||
{
|
{
|
||||||
flag = RTLD_NOW;
|
flag = RTLD_NOW;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user