centos build fix

Former-commit-id: f17c492a633ea2be99567dfe2f8a59c0b0136d86
This commit is contained in:
Ben Schermel 2020-05-29 22:23:48 -04:00
parent 5316f656d9
commit be6f1df429

View File

@ -129,7 +129,7 @@ static void initCryptoLocks(void) {
return; return;
} }
nlocks = CRYPTO_num_locks(); 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++) { for (i = 0; i < nlocks; i++) {
pthread_mutex_init(openssl_locks + i, NULL); pthread_mutex_init(openssl_locks + i, NULL);
} }