DRTVWR-476: pthread_self() also needs CRYPTO_THREADID_set_pointer()

master
Nat Goodspeed 2018-10-28 22:30:42 -04:00
parent 3766f35a2a
commit dcc2bbbd30
3 changed files with 3 additions and 3 deletions

View File

@ -645,7 +645,7 @@ void ssl_thread_id_callback(CRYPTO_THREADID* pthreadid)
#if defined(WIN32)
CRYPTO_THREADID_set_pointer(pthreadid, GetCurrentThread());
#else
CRYPTO_THREADID_set_numeric(pthreadid, pthread_self());
CRYPTO_THREADID_set_pointer(pthreadid, pthread_self());
#endif
}

View File

@ -118,7 +118,7 @@ void ssl_thread_id_callback(CRYPTO_THREADID* pthreadid)
#if defined(WIN32)
CRYPTO_THREADID_set_pointer(pthreadid, GetCurrentThread());
#else
CRYPTO_THREADID_set_numeric(pthreadid, pthread_self());
CRYPTO_THREADID_set_pointer(pthreadid, pthread_self());
#endif
}

View File

@ -663,7 +663,7 @@ void LLCrashLogger::ssl_thread_id_callback(CRYPTO_THREADID* pthreadid)
#if LL_WINDOWS
CRYPTO_THREADID_set_pointer(pthreadid, GetCurrentThread());
#else
CRYPTO_THREADID_set_numeric(pthreadid, pthread_self());
CRYPTO_THREADID_set_pointer(pthreadid, pthread_self());
#endif
}