netns xfrm: finding states 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
12604d8aaa
commit
5447c5e401
@@ -837,7 +837,7 @@ static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
|
||||
x = NULL;
|
||||
if (p->info.seq) {
|
||||
x = xfrm_find_acq_byseq(p->info.seq);
|
||||
x = xfrm_find_acq_byseq(&init_net, p->info.seq);
|
||||
if (x && xfrm_addr_cmp(&x->id.daddr, daddr, family)) {
|
||||
xfrm_state_put(x);
|
||||
x = NULL;
|
||||
@@ -845,7 +845,7 @@ static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
}
|
||||
|
||||
if (!x)
|
||||
x = xfrm_find_acq(p->info.mode, p->info.reqid,
|
||||
x = xfrm_find_acq(&init_net, p->info.mode, p->info.reqid,
|
||||
p->info.id.proto, daddr,
|
||||
&p->info.saddr, 1,
|
||||
family);
|
||||
|
Reference in New Issue
Block a user