]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_TCPOPTSTRIP: don't use tcp_hdr()
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 10 Jun 2013 23:51:31 +0000 (01:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 10 Jun 2013 23:55:07 +0000 (01:55 +0200)
commitf5725be8f0f735a5a995048fe6fae8e13197c65f
treef86328e2d8d222989322f0a9d65e04218f3e531f
parentff9c4476b08f4d6e2a57817bc28b10472f08fb5c
netfilter: xt_TCPOPTSTRIP: don't use tcp_hdr()

In (55bda6c netfilter: xt_TCPOPTSTRIP: fix possible mangling beyond
packet boundary), the use of tcp_hdr was introduced. However, we
cannot assume that skb->transport_header is set for non-local packets.

Cc: Florian Westphal <fw@strlen.de>
Reported-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_TCPOPTSTRIP.c