summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-12-19 18:52:31 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-12-19 18:52:31 +0100
commit6612fe8d073bf292f5dc7f6271c76f714e81d9d1 (patch)
tree31c169ffe1ccfe0e57f29538de9df8fe610ade9b
parent482c167dffd033915f693c13eb3c47e6f6f77a27 (diff)
downloadconntrack-tools-6612fe8d073bf292f5dc7f6271c76f714e81d9d1.tar.gz
conntrack-tools-6612fe8d073bf292f5dc7f6271c76f714e81d9d1.zip
conntrackd: fix filtering of dump output if internal cache is disabled
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/internal_bypass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal_bypass.c b/src/internal_bypass.c
index 4caaf4f..1e1478f 100644
--- a/src/internal_bypass.c
+++ b/src/internal_bypass.c
@@ -31,6 +31,9 @@ static int dump_cb(enum nf_conntrack_msg_type type,
char buf[1024];
int size, *fd = data;
+ if (ct_filter_conntrack(ct, 1))
+ return NFCT_CB_CONTINUE;
+
size = nfct_snprintf(buf, 1024, ct, NFCT_T_UNKNOWN, NFCT_O_DEFAULT, 0);
if (size < 1024) {
buf[size] = '\n';