From: Jo-Philipp Wich Date: Fri, 22 Nov 2019 17:23:16 +0000 (+0100) Subject: zones: fix emitting match rules for zones with only "extra" options X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=72a486f7fe4fce0d26b163445ba64ff9e14ead8b;p=oweals%2Ffirewall3.git zones: fix emitting match rules for zones with only "extra" options Signed-off-by: Jo-Philipp Wich --- 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);