]> git.ipfire.org Git - thirdparty/nftables.git/commit
monitor: fix double cache update with --echo
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Jul 2019 16:10:30 +0000 (18:10 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Jul 2019 16:10:59 +0000 (18:10 +0200)
commit9b032cd6477b847f48dc8454f0e73935e9f48754
tree5d0cf2b1568331235591809a8d3848d965ea73b4
parent24f33c710e8ce2fa93573573409d428236c2f6cb
monitor: fix double cache update with --echo

The evaluation step already updates the cache for each command in this
batch. There is no need to update the cache again from the echo path,
otherwise the cache is populated twice with the same object.

Fixes: b99c4d072d99 ("Implement --echo option")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/monitor.c