]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/xfrm/xfrm_user.c
netns xfrm: finding states in netns
[linux-2.6-omap-h63xx.git] / net / xfrm / xfrm_user.c
index e02ef3361190b1a38cca2d96df1bef7735b1c9d3..3d577440b673f6a26da342b97c95d010ec279bee 100644 (file)
@@ -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);