]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: check for NEXTHDR_NONE before header sanity checking
authorChristoph Paasch <christoph.paasch@gmail.com>
Mon, 16 Mar 2009 14:52:11 +0000 (15:52 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 16 Mar 2009 14:52:11 +0000 (15:52 +0100)
commitee7c5f93f84e24cd817cc80162e1b36e2d16abe3
tree89f8cf58ffbd7f20665f88954df5ec4136b8d73b
parent0a763eb04d92c3cd485cde154860d10e3a24bf5a
netfilter: conntrack: check for NEXTHDR_NONE before header sanity checking

NEXTHDR_NONE doesn't has an IPv6 option header, so the first check
for the length will always fail and results in a confusing message
"too short" if debugging enabled. With this patch, we check for
NEXTHDR_NONE before length sanity checkings are done.

Signed-off-by: Christoph Paasch <christoph.paasch@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/nf_conntrack_reasm.c