Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6706b6eb authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Remove now superfluous code in ip_route_connect().



Now that output route lookups update the flow with
source address et al. selections, the fl4->{saddr,daddr}
assignments here are no longer necessary.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 813b3b5d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -271,8 +271,6 @@ static inline struct rtable *ip_route_connect(struct flowi4 *fl4,
		rt = __ip_route_output_key(net, fl4);
		if (IS_ERR(rt))
			return rt;
		fl4->daddr = rt->rt_dst;
		fl4->saddr = rt->rt_src;
		ip_rt_put(rt);
	}
	security_sk_classify_flow(sk, flowi4_to_flowi(fl4));