]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: cache: Review flush_cache()
authorPhil Sutter <phil@nwl.cc>
Mon, 2 Mar 2020 17:29:54 +0000 (18:29 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 6 Mar 2020 15:56:08 +0000 (16:56 +0100)
commit94c858c8665c4a7370d9628953f2e034fe73fc60
treeb9dd60dfde43e2b586e31ca19cef299b04de1c49
parent39ec645093baadeb3735e2e6ac797de5af6b5ac3
nft: cache: Review flush_cache()

While fixing for iptables-nft-restore under stress, I managed to hit
NULL-pointer deref in flush_cache(). Given that nftnl_*_list_free()
functions are not NULL-pointer tolerant, better make sure such are not
passed by accident.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-cache.c