]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Fix leak in unterminated string deserializer
authorPhil Sutter <phil@nwl.cc>
Mon, 20 Jan 2020 12:52:10 +0000 (13:52 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 22 Jan 2020 08:01:01 +0000 (09:01 +0100)
commitc3f6be3f2dcedf6d79751c0b975315ebc3184364
treee13293160700b210d550a444e08462d4ca5d35fe
parentdb5d7dc2bd113dd9c15e83b2e59cb3e4d54c922b
netlink: Fix leak in unterminated string deserializer

Allocated 'mask' expression is not freed before returning to caller,
although it is used temporarily only.

Fixes: b851ba4731d9f ("src: add interface wildcard matching")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c