From be6f1df429bae32b614685068c1737f7b78343e5 Mon Sep 17 00:00:00 2001 From: Ben Schermel Date: Fri, 29 May 2020 22:23:48 -0400 Subject: [PATCH] centos build fix Former-commit-id: f17c492a633ea2be99567dfe2f8a59c0b0136d86 --- src/tls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls.cpp b/src/tls.cpp index 79037c71b..0f59fb3bd 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); }