Skip to content

Commit

Permalink
feat: Change dlopen mode to RTLD_NOW | RTLD_LOCAL
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed May 14, 2021
1 parent bd558e1 commit 73993ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkcs11/pkcs11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ PKCS11::PKCS11()

void PKCS11::Load(Scoped<string> path) {
try {
int mode = RTLD_LAZY;
int mode = RTLD_NOW | RTLD_LOCAL;

dlHandle = dlopen(path->c_str(), mode);
if (!dlHandle) {
Expand Down

0 comments on commit 73993ab

Please sign in to comment.