diff options
Diffstat (limited to 'crypto/lock.c')
-rw-r--r-- | crypto/lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/lock.c b/crypto/lock.c index 5a42dc9094..aa34202163 100644 --- a/crypto/lock.c +++ b/crypto/lock.c @@ -249,7 +249,7 @@ int CRYPTO_get_new_dynlockid(void) } CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK); - pointer = OPENSSL_malloc(sizeof(*pointer)); + pointer = OPENSSL_zalloc(sizeof(*pointer)); if (pointer == NULL) { CRYPTOerr(CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID, ERR_R_MALLOC_FAILURE); return (0); |