From 1f9eac059788d149e3d8fcd9895d3c977f5e9521 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 16 Mar 2009 09:31:04 +0100 Subject: [PATCH] src/filter_chain.c: Allow chains without a default target. This is how it's documented. --- src/filter_chain.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/filter_chain.c b/src/filter_chain.c index 9a52f7c9..01688ee2 100644 --- a/src/filter_chain.c +++ b/src/filter_chain.c @@ -516,21 +516,6 @@ static int fc_config_add_chain (const oconfig_item_t *ci) /* {{{ */ break; } /* for (ci->children) */ - /* Additional sanity checking. */ - while (status == 0) - { - if (chain->targets == NULL) - { - WARNING ("Filter subsystem: Chain %s: No default target has been " - "specified. Please make sure that there is a block within " - "the block!", chain->name); - status = -1; - break; - } - - break; - } /* while (status == 0) */ - if (status != 0) { fc_free_chains (chain); -- 2.11.0