Skip to content

Commit

Permalink
fix: Update dlopen flags to include RTLD_LOCAL
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Jun 5, 2024
1 parent 41bbb49 commit 22211f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkcs11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ class Pkcs11
char *pPath = path.data();
napi_get_value_string_utf8(env, arg[0], pPath, length + 1, &length);

pkcs11->handle = dlopen(pPath, RTLD_LAZY);
pkcs11->handle = dlopen(pPath, RTLD_LAZY | RTLD_LOCAL);
if (pkcs11->handle == nullptr)
{
napi_throw_error(env, nullptr, dlerror());
Expand Down

0 comments on commit 22211f3

Please sign in to comment.