diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index 2fce6b84d..e29a6f554 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -889,7 +889,7 @@ struct crypto_hash * crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, struct crypto_hash *hash; int type; - hash = os_malloc(sizeof(*hash)); + hash = os_zalloc(sizeof(*hash)); if (!hash) goto done;