Skip to content

Commit f17c492

Browse files
committed
centos build fix
1 parent aad6a7c commit f17c492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void initCryptoLocks(void) {
129129
return;
130130
}
131131
nlocks = CRYPTO_num_locks();
132-
openssl_locks = zmalloc(sizeof(*openssl_locks) * nlocks);
132+
openssl_locks = (pthread_mutex_t*)zmalloc(sizeof(*openssl_locks) * nlocks);
133133
for (i = 0; i < nlocks; i++) {
134134
pthread_mutex_init(openssl_locks + i, NULL);
135135
}

0 commit comments

Comments
 (0)