summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-03-04 16:55:27 (GMT)
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-04 17:46:08 (GMT)
commit59900e0a019e7c2bdb7809a03ed5742d311b15b3 (patch)
treed128e560d9936517baaf94261444682fae727097 /include
parent86f1ec32318159a24de349f0a38e79b9d2b3131a (diff)
downloadlinux-59900e0a019e7c2bdb7809a03ed5742d311b15b3.tar.xz
netfilter: nf_tables: fix error handling of rule replacement
In general, if a transaction object is added to the list successfully, we can rely on the abort path to undo what we've done. This allows us to simplify the error handling of the rule replacement path in nf_tables_newrule(). This implicitly fixes an unnecessary removal of the old rule, which needs to be left in place if we fail to replace. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions