From: Jan Engelhardt Date: Sat, 18 Jul 2009 12:52:58 +0000 (+0200) Subject: netfilter: xtables: ignore unassigned hooks in check_entry_size_and_hooks X-Git-Tag: v2.6.32-rc1~703^2~21^2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d51738e757c1ab94595e7d05594c61f0fb32ce;p=pandora-kernel.git netfilter: xtables: ignore unassigned hooks in check_entry_size_and_hooks The "hook_entry" and "underflow" array contains values even for hooks not provided, such as PREROUTING in conjunction with the "filter" table. Usually, the values point to whatever the next rule is. For the upcoming unconditionality and underflow checking patches however, we must not inspect that arbitrary rule. Skipping unassigned hooks seems like a good idea, also because newinfo->hook_entry and newinfo->underflow will then continue to have the poison value for detecting abnormalities. Signed-off-by: Jan Engelhardt --- Reading git-diff-tree failed