1
0
Fork 0
mirror of git://git.netfilter.org/iptables synced 2025-12-05 23:07:23 +00:00
No description
Find a file
Phil Sutter 78d7a5f861 nft: Support replacing a rule added in the same batch
As reported in nfbz#1820, trying to add a rule and replacing it in the
same batch would crash iptables due to a stale rule pointer left in an
obj_update.

Doing this is perfectly fine in legacy iptables, so implement the
missing feature instead of merely preventing the crash.

Link: https://bugzilla.netfilter.org/show_bug.cgi?id=1820
Fixes: b199aca80d ("nft: Fix leak when replacing a rule")
Signed-off-by: Phil Sutter <phil@nwl.cc>
2025-11-27 21:07:02 +01:00
etc etc: Drop xtables.conf 2023-01-18 15:00:06 +01:00
extensions extensions: man: Add a note about route_localnet sysctl 2025-08-21 16:21:05 +02:00
include libxtables: Hide xtables_strtoul_base() symbol 2024-11-07 17:41:04 +01:00
iptables nft: Support replacing a rule added in the same batch 2025-11-27 21:07:02 +01:00
libipq Makefile: Fix for 'make distcheck' 2022-12-14 15:47:14 +01:00
libiptc libiptc: Fix for another segfault due to chain index NULL pointer 2023-10-12 17:47:13 +02:00
libxtables Revert "libxtables: Promote xtopt_esize_by_type() as xtopt_psize getter" 2025-07-22 16:48:11 +02:00
m4 build: remove -Wl,--no-as-needed and libiptc.so 2019-05-30 22:43:13 +02:00
utils Fix spelling mistakes 2023-12-12 11:54:44 +01:00
.gitignore Makefile.am: Integrate testsuites 2022-12-14 15:47:18 +01:00
autogen.sh build: abort autogen on subcommand failure 2011-08-01 21:26:08 +02:00
COMMIT_NOTES COMMIT_NOTES: notice to check for soversion bumps 2009-06-26 21:13:10 +02:00
configure.ac nft-ruleparse: Fallback to compat expressions in userdata 2025-04-10 18:45:45 +02:00
COPYING doc: update GPL license text 2011-05-30 01:54:28 +02:00
INSTALL doc: clarify DEBUG usage macro 2013-07-08 04:51:15 +02:00
iptables-test.py tests: iptables-test: Add nft-compat variant 2025-04-10 18:45:46 +02:00
Makefile.am Makefile.am: Revert to old serial test harness 2024-11-06 17:41:55 +01:00
xlate-test.py tests: xlate-test: Fix for 'make distcheck' 2024-11-06 17:41:55 +01:00