]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink_delinearize: Replace some BUG()s by error messages
authorPhil Sutter <phil@nwl.cc>
Fri, 16 May 2025 11:28:19 +0000 (13:28 +0200)
committerPhil Sutter <phil@nwl.cc>
Sun, 25 May 2025 07:55:35 +0000 (09:55 +0200)
commit9f2a11aa15422333d1812501dd4f294348d6e0d5
treef9379a6ba49eab742fd6d212e7f148e97d8762c3
parentd94582cbcb3c9a76b81ceba69ef80a4735772893
netlink_delinearize: Replace some BUG()s by error messages

Netlink parser tries to keep going despite errors. Faced with an
incompatible ruleset, this is much more user-friendly than exiting the
program upon the first obstacle. This patch fixes three more spots to
support this.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c