]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: handle invalid etype in set_make_key()
authorThomas Haller <thaller@redhat.com>
Wed, 20 Sep 2023 14:26:07 +0000 (16:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 20 Sep 2023 16:22:48 +0000 (18:22 +0200)
commitc4186c5376ee73efff005dbd23dd73a8e06e6ad8
tree4dc0f9d2070f88f982f9e0b6b76f2c2fd65ddea5
parentded675121cac6877938148dc07e1653b58441864
netlink: handle invalid etype in set_make_key()

It's not clear to me, what ensures that the etype is always valid.
Handle a NULL.

Fixes: 6e48df5329ea ('src: add "typeof" build/parse/print support')
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c