summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2014-12-23 09:34:03 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2014-12-26 08:33:36 +1100
commitad202c8c1563da4dda9416ca0ea1e0b94430f759 (patch)
treeab17431c3504be289dfef862162740eed9218d86 /crypto
parent90ac41bd40ad0571a10826eb26d53c84bd791f29 (diff)
downloadop-kernel-dev-ad202c8c1563da4dda9416ca0ea1e0b94430f759.zip
op-kernel-dev-ad202c8c1563da4dda9416ca0ea1e0b94430f759.tar.gz
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/af_alg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index a8ff3c4..76d739d 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;
}
OpenPOWER on IntegriCloud