Skip to content

Commit

Permalink
xfrm: delete not-needed clear to zero of encap_oa
Browse files Browse the repository at this point in the history
After commit 2f47965 ("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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
  • Loading branch information
rleon authored and klassert committed Jun 9, 2023
1 parent b2cbac9 commit a94fd40
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a94fd40

Please sign in to comment.