From 72a486f7fe4fce0d26b163445ba64ff9e14ead8b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 22 Nov 2019 18:23:16 +0100 Subject: [PATCH] zones: fix emitting match rules for zones with only "extra" options Signed-off-by: Jo-Philipp Wich --- zones.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zones.c b/zones.c index 4f2b1e4..01fb706 100644 --- a/zones.c +++ b/zones.c @@ -594,7 +594,7 @@ print_interface_rules(struct fw3_ipt_handle *handle, struct fw3_state *state, if (!fw3_is_family(sub, handle->family)) continue; - if (!dev && !sub) + if (!dev && !sub && !zone->extra_src && !zone->extra_dest) continue; print_interface_rule(handle, state, reload, zone, dev, sub); -- 2.25.1