diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 78c4ce424a68..1e59c0d4b11e 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1164,7 +1164,7 @@ void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw, | |||
1164 | if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) | 1164 | if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) |
1165 | goto reject_redirect; | 1165 | goto reject_redirect; |
1166 | } else { | 1166 | } else { |
1167 | if (inet_addr_type(new_gw) != RTN_UNICAST) | 1167 | if (inet_addr_type(&init_net, new_gw) != RTN_UNICAST) |
1168 | goto reject_redirect; | 1168 | goto reject_redirect; |
1169 | } | 1169 | } |
1170 | 1170 | ||