Skip to content
Commit 2c964c55 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: nf_tables: reverse order in rule replacement expansion



Deactivate old rule first, then append the new rule, so rule replacement
notification via netlink first reports the deletion of the old rule with
handle X in first place, then it adds the new rule (reusing the handle X
of the replaced old rule).

Note that the abort path releases the transaction that has been created
by nft_delrule() on error.

Fixes: ca089878 ("netfilter: nf_tables: deactivate expressions in rule replecement routine")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent e189ae16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment