aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index ddb198392c7f..1ff0923df715 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1572,6 +1572,7 @@ int tcp_v4_rcv(struct sk_buff *skb)
1572 TCP_SKB_CB(skb)->ip_dsfield = ipv4_get_dsfield(iph); 1572 TCP_SKB_CB(skb)->ip_dsfield = ipv4_get_dsfield(iph);
1573 TCP_SKB_CB(skb)->sacked = 0; 1573 TCP_SKB_CB(skb)->sacked = 0;
1574 1574
1575lookup:
1575 sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest); 1576 sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest);
1576 if (!sk) 1577 if (!sk)
1577 goto no_tcp_socket; 1578 goto no_tcp_socket;
@@ -1587,8 +1588,12 @@ process:
1587 sk = req->rsk_listener; 1588 sk = req->rsk_listener;
1588 if (tcp_v4_inbound_md5_hash(sk, skb)) 1589 if (tcp_v4_inbound_md5_hash(sk, skb))
1589 goto discard_and_relse; 1590 goto discard_and_relse;
1590 if (sk->sk_state == TCP_LISTEN) 1591 if (likely(sk->sk_state == TCP_LISTEN)) {
1591 nsk = tcp_check_req(sk, skb, req, false); 1592 nsk = tcp_check_req(sk, skb, req, false);
1593 } else {
1594 inet_csk_reqsk_queue_drop(sk, req);
1595 goto lookup;
1596 }
1592 if (!nsk) { 1597 if (!nsk) {
1593 reqsk_put(req); 1598 reqsk_put(req);
1594 goto discard_it; 1599 goto discard_it;