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)
commited82c437320c48a4032492f4a55a7e2c934158b6
treef86328e2d8d222989322f0a9d65e04218f3e531f
parenta8241c63517ec0b900695daa9003cddc41c536a1
netfilter: xt_TCPOPTSTRIP: don't use tcp_hdr()

In (bc6bcb5 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