diff options
-rw-r--r-- | crypto/algif_skcipher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 83187f497c7c..85e3bdbe214c 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c | |||
@@ -566,6 +566,7 @@ static void skcipher_sock_destruct(struct sock *sk) | |||
566 | struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); | 566 | struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); |
567 | 567 | ||
568 | skcipher_free_sgl(sk); | 568 | skcipher_free_sgl(sk); |
569 | memzero_explicit(ctx->iv, crypto_ablkcipher_ivsize(tfm)); | ||
569 | sock_kfree_s(sk, ctx->iv, crypto_ablkcipher_ivsize(tfm)); | 570 | sock_kfree_s(sk, ctx->iv, crypto_ablkcipher_ivsize(tfm)); |
570 | sock_kfree_s(sk, ctx, ctx->len); | 571 | sock_kfree_s(sk, ctx, ctx->len); |
571 | af_alg_release_parent(sk); | 572 | af_alg_release_parent(sk); |