Fix wiping of hash struct in nss and nettle backend.

This commit is contained in:
Milan Broz
2024-07-12 14:43:09 +02:00
parent 3839e2bf98
commit 5e04a82e53
2 changed files with 2 additions and 4 deletions

View File

@@ -207,8 +207,7 @@ int crypt_hmac_init(struct crypt_hmac **ctx, const char *name,
h = malloc(sizeof(*h));
if (!h)
return -ENOMEM;
memset(ctx, 0, sizeof(*ctx));
memset(h, 0, sizeof(*h));
h->hash = _get_alg(name);
if (!h->hash)