Commit 5b747064 authored by Loganaden Velvindron's avatar Loganaden Velvindron Committed by David Howells

crypto : asymmetric_keys : verify_pefile:zero memory content before freeing

Signed-off-by: default avatarLoganaden Velvindron <logan@hackers.mu>
Signed-off-by: default avatarYasir Auleear <yasirmx@hackers.mu>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent b9481e69
......@@ -381,7 +381,7 @@ static int pefile_digest_pe(const void *pebuf, unsigned int pelen,
}
error:
kfree(desc);
kzfree(desc);
error_no_desc:
crypto_free_shash(tfm);
kleave(" = %d", ret);
......@@ -450,6 +450,6 @@ int verify_pefile_signature(const void *pebuf, unsigned pelen,
ret = pefile_digest_pe(pebuf, pelen, &ctx);
error:
kfree(ctx.digest);
kzfree(ctx.digest);
return ret;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment