From 663b9ff6af97bc86d1b92be0d7e1ed8185852426 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Sun, 28 Oct 2018 22:30:42 -0400
Subject: [PATCH] DRTVWR-476: pthread_self() also needs
 CRYPTO_THREADID_set_pointer()

---
 indra/llcorehttp/examples/http_texture_load.cpp | 2 +-
 indra/llcorehttp/tests/llcorehttp_test.cpp      | 2 +-
 indra/llcrashlogger/llcrashlogger.cpp           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/indra/llcorehttp/examples/http_texture_load.cpp b/indra/llcorehttp/examples/http_texture_load.cpp
index f80e64c9651..c7376042b30 100644
--- a/indra/llcorehttp/examples/http_texture_load.cpp
+++ b/indra/llcorehttp/examples/http_texture_load.cpp
@@ -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
 }
 
diff --git a/indra/llcorehttp/tests/llcorehttp_test.cpp b/indra/llcorehttp/tests/llcorehttp_test.cpp
index d2df15ed5fd..cf4dff877ad 100755
--- a/indra/llcorehttp/tests/llcorehttp_test.cpp
+++ b/indra/llcorehttp/tests/llcorehttp_test.cpp
@@ -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
 }
 
diff --git a/indra/llcrashlogger/llcrashlogger.cpp b/indra/llcrashlogger/llcrashlogger.cpp
index be7a08ac41c..58a5df21dd9 100644
--- a/indra/llcrashlogger/llcrashlogger.cpp
+++ b/indra/llcrashlogger/llcrashlogger.cpp
@@ -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
 }
 
-- 
GitLab