Commit a94fd40a authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Steffen Klassert

xfrm: delete not-needed clear to zero of encap_oa

After commit 2f479651 ("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: default avatarLeon Romanovsky <leonro@nvidia.com>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent b2cbac9b
......@@ -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);
......
Markdown is supported
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