summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-07-01 18:10:30 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-07-01 18:10:59 +0200
commit9b032cd6477b847f48dc8454f0e73935e9f48754 (patch)
tree5d0cf2b1568331235591809a8d3848d965ea73b4 /src
parent24f33c710e8ce2fa93573573409d428236c2f6cb (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/monitor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/monitor.c b/src/monitor.c
index a68d960b..5b25c9d4 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -900,7 +900,6 @@ int netlink_echo_callback(const struct nlmsghdr *nlh, void *data)
.ctx = ctx,
.loc = &netlink_location,
.monitor_flags = 0xffffffff,
- .cache_needed = true,
};
if (!nft_output_echo(&echo_monh.ctx->nft->output))