diff options
-rw-r--r-- | src/filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |