]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: netlink: netlink_delinearize_table() may return NULL
authorPhil Sutter <phil@nwl.cc>
Fri, 8 Aug 2025 12:21:41 +0000 (14:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 17 Aug 2025 21:56:26 +0000 (23:56 +0200)
commita2afd80715caa399840c222cf557ec5c9f4b69c5
tree49e2fd6a6b55e1beb051f09c82d727579f3e5398
parent0a08ec914368028506d0bc8a10338a5a805d02cf
src: netlink: netlink_delinearize_table() may return NULL

commit a69d552a005ba467d37e225032e35d01d9491241 upstream.

Catch the error condition in callers to avoid crashes.

Fixes: c156232a530b3 ("src: add comment support when adding tables")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/monitor.c
src/netlink.c