Skip to content

Commit

Permalink
ipip: Fix bug added to ipip_tunnel_xmit().
Browse files Browse the repository at this point in the history
We can remove the rt_gateway == 0 check but we shouldn't
remove the 'dst' initialization too.

Noticed by Eric Dumazet.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 24, 2012
1 parent 496053f commit 658c8d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
dev->stats.tx_fifo_errors++;
goto tx_error;
}
dst = rt->rt_gateway;
}

rt = ip_route_output_ports(dev_net(dev), &fl4, NULL,
Expand Down

0 comments on commit 658c8d9

Please sign in to comment.