diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 51424df9078e..c146a02f8495 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1564,7 +1564,7 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb) | |||
1564 | return 0; | 1564 | return 0; |
1565 | } | 1565 | } |
1566 | 1566 | ||
1567 | if (skb->len < (skb->h.th->doff << 2) || tcp_checksum_complete(skb)) | 1567 | if (skb->len < tcp_hdrlen(skb) || tcp_checksum_complete(skb)) |
1568 | goto csum_err; | 1568 | goto csum_err; |
1569 | 1569 | ||
1570 | if (sk->sk_state == TCP_LISTEN) { | 1570 | if (sk->sk_state == TCP_LISTEN) { |