aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 98aa50c11dd..b45a7c0268c 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2200,7 +2200,9 @@ static int rt6_fill_node(struct sk_buff *skb, struct rt6_info *rt,
2200 2200
2201 NLA_PUT_U32(skb, RTA_PRIORITY, rt->rt6i_metric); 2201 NLA_PUT_U32(skb, RTA_PRIORITY, rt->rt6i_metric);
2202 2202
2203 expires = rt->rt6i_expires ? rt->rt6i_expires - jiffies : 0; 2203 expires = (rt->rt6i_flags & RTF_EXPIRES) ?
2204 rt->rt6i_expires - jiffies : 0;
2205
2204 if (rtnl_put_cacheinfo(skb, &rt->u.dst, 0, 0, 0, 2206 if (rtnl_put_cacheinfo(skb, &rt->u.dst, 0, 0, 0,
2205 expires, rt->u.dst.error) < 0) 2207 expires, rt->u.dst.error) < 0)
2206 goto nla_put_failure; 2208 goto nla_put_failure;