]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/xfrm4_policy.c
ipv4: fix race condition between route lookup and invalidation
[linux.git] / net / ipv4 / xfrm4_policy.c
index cdef8f9a3b0166942c3bad33b649dffa97578ca8..35b84b52b7027b35f65b36d6a0160913e8df2c5a 100644 (file)
@@ -85,6 +85,7 @@ static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
        xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST |
                                              RTCF_LOCAL);
        xdst->u.rt.rt_type = rt->rt_type;
+       xdst->u.rt.rt_uses_gateway = rt->rt_uses_gateway;
        xdst->u.rt.rt_gw_family = rt->rt_gw_family;
        if (rt->rt_gw_family == AF_INET)
                xdst->u.rt.rt_gw4 = rt->rt_gw4;