centos build fix

Former-commit-id: 6fe4571bf959432127b8741c22d8264fd55969b8
This commit is contained in:
Ben Schermel 2020-05-29 22:21:01 -04:00
parent 9ba82f9083
commit e7a72b4b2b

View File

@ -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);
}