We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c7fd2 commit 414f95eCopy full SHA for 414f95e
addon/openssl-crypto.cc
@@ -359,7 +359,7 @@ bool sign_rsa(void* unused_ctx,
359
}
360
361
void* opensslsym(const char* name) {
362
- static struct OwnProcessDylib {
+ struct OwnProcessDylib {
363
bool initialized = false;
364
#ifdef _WIN32
365
HMODULE lib;
@@ -386,7 +386,8 @@ void* opensslsym(const char* name) {
386
return reinterpret_cast<void*>(dlsym(lib, name));
387
388
#endif
389
- } dl;
+ };
390
+ static OwnProcessDylib dl;
391
if (!dl.lib) {
392
throw new std::runtime_error("Could not open process handle");
393
0 commit comments