Skip to content
Commit ef0fe1af authored by Wang Ming's avatar Wang Ming Committed by Greg Kroah-Hartman
Browse files

net: ipv4: Use kfree_sensitive instead of kfree

[ Upstream commit daa75144 ]

key might contain private part of the key, so better use
kfree_sensitive to free it.

Fixes: 38320c70

 ("[IPSEC]: Use crypto_aead and authenc in ESP")
Signed-off-by: default avatarWang Ming <machel@vivo.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7552f8e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment