|
@@ -944,12 +944,12 @@ redo_rt6_select:
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
- if (rt->rt6i_flags & RTF_CACHE)
|
|
|
|
- goto out;
|
|
|
|
-
|
|
|
|
dst_hold(&rt->dst);
|
|
dst_hold(&rt->dst);
|
|
read_unlock_bh(&table->tb6_lock);
|
|
read_unlock_bh(&table->tb6_lock);
|
|
|
|
|
|
|
|
+ if (rt->rt6i_flags & RTF_CACHE)
|
|
|
|
+ goto out2;
|
|
|
|
+
|
|
if (!(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_GATEWAY)))
|
|
if (!(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_GATEWAY)))
|
|
nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr);
|
|
nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr);
|
|
else if (!(rt->dst.flags & DST_HOST))
|
|
else if (!(rt->dst.flags & DST_HOST))
|