iptables: Update the hook entries correctly in iptables_delete_rule()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 12 Feb 2013 09:19:55 +0000 (10:19 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 12 Feb 2013 10:35:14 +0000 (12:35 +0200)
commitbd7abd9c3f5c8c971e453da9ecdfdea77f5ba7bf
tree3233d927e168e2ccde4fd68581348e5ecb46a595
parent3e95870df42bc69c8a7afae8860fc23a00fba7b4
iptables: Update the hook entries correctly in iptables_delete_rule()

The builtin value is only valid in the chain head entry and not
in any other entry. That means we need to lookup the head entry
and use that builtin value (== hook id) and then update all
references which follow that chain.
src/iptables.c