mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:00:58 +07:00
af_key: initialize xfrm encap_oa
Currently encap_oa is left uninitialized, so it contains garbage data which is visible to userland via Netlink. Initialize it by zeroing it out. Signed-off-by: Timo Teras <timo.teras@iki.fi> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e918085aaf
commit
a8d694c651
@ -1285,6 +1285,7 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user