diff --git a/src/h2load.cc b/src/h2load.cc index f60ffeaf..53db71c9 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -812,7 +812,7 @@ int main(int argc, char **argv) SSL_library_init(); #ifndef NOTHREADS - ssl::LibsslGlobalLock(); + ssl::LibsslGlobalLock lock; #endif // NOTHREADS auto ssl_ctx = SSL_CTX_new(SSLv23_client_method()); diff --git a/src/nghttpd.cc b/src/nghttpd.cc index a75a23b9..d037615e 100644 --- a/src/nghttpd.cc +++ b/src/nghttpd.cc @@ -296,7 +296,7 @@ int main(int argc, char **argv) SSL_load_error_strings(); SSL_library_init(); #ifndef NOTHREADS - ssl::LibsslGlobalLock(); + ssl::LibsslGlobalLock lock; #endif // NOTHREADS reset_timer(); diff --git a/src/shrpx.cc b/src/shrpx.cc index 1bb3ea51..65277894 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1621,7 +1621,7 @@ int main(int argc, char **argv) SSL_load_error_strings(); SSL_library_init(); #ifndef NOTHREADS - nghttp2::ssl::LibsslGlobalLock(); + nghttp2::ssl::LibsslGlobalLock lock; #endif // NOTHREADS if(conf_exists(get_config()->conf_path.get())) {