Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proxy/http/remap/PluginDso.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ PluginDso::load(std::string &error)
PluginDebug(_tag, "plugin '%s' mоdification time %ld", _configPath.c_str(), _mtime);

/* Now attemt to load the plugin DSO */
if ((_dlh = dlopen(_runtimePath.c_str(), RTLD_NOW)) == nullptr) {
if ((_dlh = dlopen(_runtimePath.c_str(), RTLD_NOW | RTLD_LOCAL)) == nullptr) {
#if defined(freebsd) || defined(openbsd)
char *err = (char *)dlerror();
#else
Expand Down
2 changes: 1 addition & 1 deletion proxy/http/remap/unit-tests/test_PluginFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class GlobalPluginInfo
{
CHECK(fs::exists(configPath));

void *handle = dlopen(configPath.c_str(), RTLD_NOW);
void *handle = dlopen(configPath.c_str(), RTLD_NOW | RTLD_LOCAL);
if (!handle) {
return false;
}
Expand Down