aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_fib.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r--net/ipv6/ip6_fib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 7ef0743f06f0..215afc74d8aa 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -1562,7 +1562,7 @@ static int fib6_age(struct rt6_info *rt, void *arg)
1562 neigh_flags = neigh->flags; 1562 neigh_flags = neigh->flags;
1563 neigh_release(neigh); 1563 neigh_release(neigh);
1564 } 1564 }
1565 if (neigh_flags & NTF_ROUTER) { 1565 if (!(neigh_flags & NTF_ROUTER)) {
1566 RT6_TRACE("purging route %p via non-router but gateway\n", 1566 RT6_TRACE("purging route %p via non-router but gateway\n",
1567 rt); 1567 rt);
1568 return -1; 1568 return -1;