Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable

Former-commit-id: 366f8c2dc623c1bc441e34dcd81eacc82734f3ce
This commit is contained in:
John Sully 2020-05-30 00:06:23 -04:00
commit ed77c35b15

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