diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 352271154ddb079d17c2021334525772bb9de266..106dbe5140f1e8c09178939175ea9f8dc48bbf60 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -920,7 +920,7 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, if (!(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_GATEWAY))) nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr); - else if (!(rt->dst.flags & DST_HOST) || !(rt->dst.flags & RTF_LOCAL)) + else if (!(rt->dst.flags & DST_HOST) || !(rt->rt6i_flags & RTF_LOCAL)) nrt = rt6_alloc_clone(rt, &fl6->daddr); else goto out2;