mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
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
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user