]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: don't crash on set definition with incorrect datatype
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 10 May 2021 16:52:47 +0000 (18:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 11 May 2021 19:39:01 +0000 (21:39 +0200)
commitfa1d5b344a9b30d9071909e1d4cc3343ba45fc97
tree1f470ee9d0f948c1375edeab1a9b5dc35d56fe22
parent419d196886889e9b37f76f8c803cb08dcbc05505
evaluate: don't crash on set definition with incorrect datatype

Cache updates have resurrected the bug described in 5afa5a164ff1
("evaluate: check for NULL datatype in rhs in lookup expr").

This is triggered by testcases/cache/0008_delete_by_handle_0.

Fixes: df48e56e987f ("cache: add hashtable cache for sets")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c