diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index ab09b126423ce3e56fd1fee2f6bda54e4b851022..7f35ac26a71a33d0f5ce1a32c5952814882999d6 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c @@ -85,7 +85,7 @@ int ip_forward(struct sk_buff *skb) rt = skb_rtable(skb); - if (opt->is_strictroute && opt->nexthop != rt->rt_gateway) + if (opt->is_strictroute && rt->rt_gateway) goto sr_failed; if (unlikely(skb->len > dst_mtu(&rt->dst) && !skb_is_gso(skb) &&