From 4cd4e306286b4b255b7a5fb310a5250bb9d099e0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 22 Jan 2012 18:27:43 +0100 Subject: conntrackd: fix expectation filtering if ExpectationSync On is used If ExpectationSync On is used, we synchronize no expectations at all due to a problem in the event filtering. This is bug, this patch fixes the problem. Reported-by: Gaurav Sinha Signed-off-by: Pablo Neira Ayuso --- src/filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/filter.c') diff --git a/src/filter.c b/src/filter.c index e8515d6..afefbfa 100644 --- a/src/filter.c +++ b/src/filter.c @@ -467,8 +467,9 @@ int exp_filter_find(struct exp_filter *f, const struct nf_expect *exp) { struct exp_filter_item *item; + /* if filtering is not active, accept everything. */ if (f == NULL) - return 0; + return 1; list_for_each_entry(item, &f->list, head) { const char *name = nfexp_get_attr(exp, ATTR_EXP_HELPER_NAME); -- cgit v1.2.3