libtnccs: Correctly read dlopen_use_rtld_now option

Fixes: 50e4aeb22f49 ("libtnccs: Optionally use RTLD_NOW to load IMC/IMVs with dlopen()")
This commit is contained in:
Tobias Brunner 2017-09-14 18:07:08 +02:00
parent ddfb5dd44a
commit f871b341d7
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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;
} }