diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 831d844a27ca..277d71239d75 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1734,15 +1734,8 @@ EXPORT_SYMBOL(tcp_add_backlog); | |||
1734 | int tcp_filter(struct sock *sk, struct sk_buff *skb) | 1734 | int tcp_filter(struct sock *sk, struct sk_buff *skb) |
1735 | { | 1735 | { |
1736 | struct tcphdr *th = (struct tcphdr *)skb->data; | 1736 | struct tcphdr *th = (struct tcphdr *)skb->data; |
1737 | unsigned int eaten = skb->len; | ||
1738 | int err; | ||
1739 | 1737 | ||
1740 | err = sk_filter_trim_cap(sk, skb, th->doff * 4); | 1738 | return sk_filter_trim_cap(sk, skb, th->doff * 4); |
1741 | if (!err) { | ||
1742 | eaten -= skb->len; | ||
1743 | TCP_SKB_CB(skb)->end_seq -= eaten; | ||
1744 | } | ||
1745 | return err; | ||
1746 | } | 1739 | } |
1747 | EXPORT_SYMBOL(tcp_filter); | 1740 | EXPORT_SYMBOL(tcp_filter); |
1748 | 1741 | ||