summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-12 20:31:14 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-13 03:05:38 +0300
commit1deeb6408c1ca9ee2ebb0ee8e0a7ba7c6fadf397 (patch)
treeb74eb1559d2bb62a1548f6aaed0876fcf434e341 /net/ipv6
parent8c5a3ca306a0ade34fb6faafb814422563acf483 (diff)
downloadlinux-1deeb6408c1ca9ee2ebb0ee8e0a7ba7c6fadf397.tar.xz
ipv6: Remove flowi6_oif compare from __ip6_route_redirect
In the review of 0b34eb004347 ("ipv6: Refactor __ip6_route_redirect"), Martin noted that the flowi6_oif compare is moved to the new helper and should be removed from __ip6_route_redirect. Fix the oversight. Fixes: 0b34eb004347 ("ipv6: Refactor __ip6_route_redirect") Reported-by: Martin Lau <kafai@fb.com> Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index d555edaaff13..a77c004d67fb 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2471,8 +2471,6 @@ restart:
continue;
if (rt->fib6_flags & RTF_REJECT)
break;
- if (fl6->flowi6_oif != rt->fib6_nh.fib_nh_dev->ifindex)
- continue;
if (ip6_redirect_nh_match(rt, &rt->fib6_nh, fl6,
&rdfl->gateway, &ret))
goto out;