Commit e9fb5af7 by Edward Thomson

openssl: retry initialization on failure

When we fail to initialize the OpenSSL subsystem, don't assume that
we're "initialized". Subsequent initialization requests -- if there are
any -- should replay initialization and fail again.
parent 655158fa
...@@ -198,7 +198,7 @@ static int openssl_ensure_initialized(void) ...@@ -198,7 +198,7 @@ static int openssl_ensure_initialized(void)
if ((error = git_openssl_stream_dynamic_init()) == 0) if ((error = git_openssl_stream_dynamic_init()) == 0)
error = openssl_init(); error = openssl_init();
openssl_initialized = true; openssl_initialized = !error;
} }
error |= git_mutex_unlock(&openssl_mutex); error |= git_mutex_unlock(&openssl_mutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment