From e7a72b4b2b7b2fe0c25b2f99cf79e697de483f04 Mon Sep 17 00:00:00 2001 From: Ben Schermel Date: Fri, 29 May 2020 22:21:01 -0400 Subject: [PATCH] centos build fix Former-commit-id: 6fe4571bf959432127b8741c22d8264fd55969b8 --- src/tls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls.cpp b/src/tls.cpp index d297695cc..aa7b1d4ef 100644 --- a/src/tls.cpp +++ b/src/tls.cpp @@ -129,7 +129,7 @@ static void initCryptoLocks(void) { return; } nlocks = CRYPTO_num_locks(); - openssl_locks = zmalloc(sizeof(*openssl_locks) * nlocks); + openssl_locks = (pthread_mutex_t*)zmalloc(sizeof(*openssl_locks) * nlocks); for (i = 0; i < nlocks; i++) { pthread_mutex_init(openssl_locks + i, NULL); }