diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2023-06-06 13:23:06 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2023-06-09 09:19:11 +0200 |
commit | a94fd40a18ae76ba76dbaa8eca0e3c46aa1142c1 (patch) | |
tree | e206786af64c64431f43d7ce1785092bad789490 | |
parent | b2cbac9b9b28730e9e53be20b6cdf979d3b9f27e (diff) |
xfrm: delete not-needed clear to zero of encap_oa
After commit 2f4796518315 ("af_key: Fix heap information leak"), there is
no need to clear encap_oa again as it is already initialized to zero.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-rw-r--r-- | net/key/af_key.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index a815f5ab4c49..1cb4560afd44 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -1281,7 +1281,6 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net, ext_hdrs[SADB_X_EXT_NAT_T_DPORT-1]; natt->encap_dport = n_port->sadb_x_nat_t_port_port; } - memset(&natt->encap_oa, 0, sizeof(natt->encap_oa)); } err = xfrm_init_state(x); |