]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Catch unknown types when deserializing objects
authorPhil Sutter <phil@nwl.cc>
Fri, 16 May 2025 17:41:19 +0000 (19:41 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 20 May 2025 10:53:31 +0000 (12:53 +0200)
commit690f19eadde5cb607ec3d8d471c86d558c7229bd
treeb5766edf206a29f7ac59429cd6b1845ccb396f4c
parent89645d04106d45d5e23b6d5206777dad1fb3e6bf
netlink: Catch unknown types when deserializing objects

Print an error message and discard the object instead of returning it to
the caller. At least when trying to print it, we would hit an assert()
in obj_type_name() anyway.

Fixes: 4756d92e517ae ("src: listing of stateful objects")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/netlink.c