@@ -1263,7 +1263,7 @@ static int inet_sk_reselect_saddr(struct sock *sk)
daddr = inet_opt->opt.faddr;
/* Query new route. */
- fl4 = &inet->cork.fl.u.ip4;
+ fl4 = &inet->cork->fl.u.ip4;
rt = ip_route_connect(fl4, daddr, 0, sk->sk_bound_dev_if,
sk->sk_protocol, inet->inet_sport,
inet->inet_dport, sk);
@@ -1321,7 +1321,7 @@ int inet_sk_rebuild_header(struct sock *sk)
if (inet_opt && inet_opt->opt.srr)
daddr = inet_opt->opt.faddr;
rcu_read_unlock();
- fl4 = &inet->cork.fl.u.ip4;
+ fl4 = &inet->cork->fl.u.ip4;
rt = ip_route_output_ports(sock_net(sk), fl4, sk, daddr, inet->inet_saddr,
inet->inet_dport, inet->inet_sport,
sk->sk_protocol, RT_CONN_FLAGS(sk),
Change two occurences of cork to a pointer in both inet_sk_reselect_saddr, and inet_sk_rebuild_header. Signed-off-by: Oliver Crumrine <ozlinuxc@gmail.com> --- net/ipv4/af_inet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)