wolfSSL: Fix crypto_hash_init() memory clearing
Explicitly clear the allocated memory to avoid uninitialized data in struct crypto_hash. Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
parent
d396057109
commit
06657d3166
1 changed files with 1 additions and 1 deletions
|
@ -889,7 +889,7 @@ struct crypto_hash * crypto_hash_init(enum crypto_hash_alg alg, const u8 *key,
|
||||||
struct crypto_hash *hash;
|
struct crypto_hash *hash;
|
||||||
int type;
|
int type;
|
||||||
|
|
||||||
hash = os_malloc(sizeof(*hash));
|
hash = os_zalloc(sizeof(*hash));
|
||||||
if (!hash)
|
if (!hash)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue