diff options
author | Eric Dumazet <edumazet@google.com> | 2015-06-04 11:01:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-07 04:55:01 -0400 |
commit | 98da81a426a76c351f3c2854d5bc31f17bba3194 (patch) | |
tree | 636dbfc8c16b4150e41aa32ff9b8774ed3f19f3b /net/ipv4/tcp_ipv4.c | |
parent | 908e80d6546813aaf8b546b4b4483fcec24190b6 (diff) |
tcp: remove redundant checks II
For same reasons than in commit 12e25e1041d0 ("tcp: remove redundant
checks"), we can remove redundant checks done for timewait sockets.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 3130c42240c8..d7d4c2b79cf2 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1671,10 +1671,6 @@ do_time_wait: | |||
1671 | goto discard_it; | 1671 | goto discard_it; |
1672 | } | 1672 | } |
1673 | 1673 | ||
1674 | if (skb->len < (th->doff << 2)) { | ||
1675 | inet_twsk_put(inet_twsk(sk)); | ||
1676 | goto bad_packet; | ||
1677 | } | ||
1678 | if (tcp_checksum_complete(skb)) { | 1674 | if (tcp_checksum_complete(skb)) { |
1679 | inet_twsk_put(inet_twsk(sk)); | 1675 | inet_twsk_put(inet_twsk(sk)); |
1680 | goto csum_error; | 1676 | goto csum_error; |