ipv4: fix TCP early demux
[linux-2.6-microblaze.git] / net / ipv4 / tcp_input.c
index 3e07a64..aa659e8 100644 (file)
@@ -5603,6 +5603,7 @@ void tcp_finish_connect(struct sock *sk, struct sk_buff *skb)
 
        if (skb != NULL) {
                sk->sk_rx_dst = dst_clone(skb_dst(skb));
+               inet_sk(sk)->rx_dst_ifindex = skb->skb_iif;
                security_inet_conn_established(sk, skb);
        }