mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
crypto: af_alg - zeroize key data
alg_setkey should zeroize the sensitive data after use. Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
90ac41bd40
commit
ad202c8c15
@ -188,7 +188,7 @@ static int alg_setkey(struct sock *sk, char __user *ukey,
|
|||||||
err = type->setkey(ask->private, key, keylen);
|
err = type->setkey(ask->private, key, keylen);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
sock_kfree_s(sk, key, keylen);
|
sock_kzfree_s(sk, key, keylen);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user