aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 85b3e89110f9..c573353f21cd 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1609,7 +1609,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
1609 return 0; 1609 return 0;
1610 } 1610 }
1611 1611
1612 if (skb->len < (skb->h.th->doff<<2) || tcp_checksum_complete(skb)) 1612 if (skb->len < tcp_hdrlen(skb) || tcp_checksum_complete(skb))
1613 goto csum_err; 1613 goto csum_err;
1614 1614
1615 if (sk->sk_state == TCP_LISTEN) { 1615 if (sk->sk_state == TCP_LISTEN) {