From: Stephan Mueller Date: Tue, 23 Dec 2014 08:34:03 +0000 (+0100) Subject: crypto: af_alg - zeroize key data X-Git-Tag: v4.0-rc1~89^2~42 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ad202c8c1563da4dda9416ca0ea1e0b94430f759;p=linux.git crypto: af_alg - zeroize key data alg_setkey should zeroize the sensitive data after use. Signed-off-by: Stephan Mueller Signed-off-by: Herbert Xu --- diff --git a/crypto/af_alg.c b/crypto/af_alg.c index a8ff3c44e13c..76d739d08211 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -188,7 +188,7 @@ static int alg_setkey(struct sock *sk, char __user *ukey, err = type->setkey(ask->private, key, keylen); out: - sock_kfree_s(sk, key, keylen); + sock_kzfree_s(sk, key, keylen); return err; }