netns xfrm: state lookup in netns
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0e6024519b
commit
221df1ed33
@@ -683,7 +683,7 @@ static struct xfrm_state *pfkey_xfrm_state_lookup(struct sadb_msg *hdr, void **
|
||||
if (!xaddr)
|
||||
return NULL;
|
||||
|
||||
return xfrm_state_lookup(xaddr, sa->sadb_sa_spi, proto, family);
|
||||
return xfrm_state_lookup(&init_net, xaddr, sa->sadb_sa_spi, proto, family);
|
||||
}
|
||||
|
||||
#define PFKEY_ALIGN8(a) (1 + (((a) - 1) | (8 - 1)))
|
||||
|
Reference in New Issue
Block a user