Commit 004b3942 authored by Hangbin Liu's avatar Hangbin Liu Committed by David S. Miller

ipv6/route: return if there is no fib_nh_gw_family

Previously we will return directly if (!rt || !rt->fib6_nh.fib_nh_gw_family)
in function rt6_probe(), but after commit cc3a86c8
("ipv6: Change rt6_probe to take a fib6_nh"), the logic changed to
return if there is fib_nh_gw_family.

Fixes: cc3a86c8 ("ipv6: Change rt6_probe to take a fib6_nh")
Signed-off-by: default avatarHangbin Liu <liuhangbin@gmail.com>
Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8eb7183
...@@ -634,7 +634,7 @@ static void rt6_probe(struct fib6_nh *fib6_nh) ...@@ -634,7 +634,7 @@ static void rt6_probe(struct fib6_nh *fib6_nh)
* Router Reachability Probe MUST be rate-limited * Router Reachability Probe MUST be rate-limited
* to no more than one per minute. * to no more than one per minute.
*/ */
if (fib6_nh->fib_nh_gw_family) if (!fib6_nh->fib_nh_gw_family)
return; return;
nh_gw = &fib6_nh->fib_nh_gw6; nh_gw = &fib6_nh->fib_nh_gw6;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment