diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index a356e1fecf9a..9be30b039ae3 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -5604,8 +5604,7 @@ void tcp_finish_connect(struct sock *sk, struct sk_buff *skb) | |||
5604 | tcp_set_state(sk, TCP_ESTABLISHED); | 5604 | tcp_set_state(sk, TCP_ESTABLISHED); |
5605 | 5605 | ||
5606 | if (skb != NULL) { | 5606 | if (skb != NULL) { |
5607 | sk->sk_rx_dst = dst_clone(skb_dst(skb)); | 5607 | inet_sk_rx_dst_set(sk, skb); |
5608 | inet_sk(sk)->rx_dst_ifindex = skb->skb_iif; | ||
5609 | security_inet_conn_established(sk, skb); | 5608 | security_inet_conn_established(sk, skb); |
5610 | } | 5609 | } |
5611 | 5610 | ||