aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2014-12-23 08:34:03 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2014-12-25 21:33:36 (GMT)
commitad202c8c1563da4dda9416ca0ea1e0b94430f759 (patch)
treeab17431c3504be289dfef862162740eed9218d86
parent90ac41bd40ad0571a10826eb26d53c84bd791f29 (diff)
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>
-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;
}

Privacy Policy