diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2017-05-25 19:38:58 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2017-05-26 13:37:31 +0200 |
commit | 9ad4f88d656ed96839389c268e1c8e5d568be500 (patch) | |
tree | d9b81b278b01addc4dbb18caec763547c004feee /lib/module.c | |
parent | module.c: cleanup unused code (diff) | |
download | knot-resolver-9ad4f88d656ed96839389c268e1c8e5d568be500.tar.xz knot-resolver-9ad4f88d656ed96839389c268e1c8e5d568be500.zip |
module.c: don't fall back to MODULEDIR if overridden
Diffstat (limited to 'lib/module.c')
-rw-r--r-- | lib/module.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/module.c b/lib/module.c index 7d9c91c5..67b6aff1 100644 --- a/lib/module.c +++ b/lib/module.c @@ -126,11 +126,9 @@ int kr_module_load(struct kr_module *module, const char *name, const char *path) return kr_error(ENOMEM); } - /* Search for module library, use current namespace if not found. */ + /* Search for module library. */ if (!path || load_library(module, name, path) != 0) { - if (load_library(module, name, MODULEDIR) != 0) { - module->lib = RTLD_DEFAULT; - } + module->lib = RTLD_DEFAULT; } /* Try to load module ABI. */ |