diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-07-18 14:52:58 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-08-10 13:35:28 +0200 |
commit | a7d51738e757c1ab94595e7d05594c61f0fb32ce (patch) | |
tree | af862be9cb71bf2ef66cd7fb72ed582428ccbc1d /block/blk-settings.c | |
parent | 47901dc2c4a3f1f9af453486a005d31fe9b393f0 (diff) |
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 <jengelh@medozas.de>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions