X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=zones.c;h=a9a559e0edcfb46c610d26db4bdbdb6b2da2eb50;hb=71d9d828691cefcac19201079473e600ffa596c9;hp=a269629f239d23d90c9392d1fcce17d272e1fde1;hpb=c21d2e2ab83dbfe60a45a6962e3b9d197b966a2e;p=project%2Ffirewall3.git diff --git a/zones.c b/zones.c index a269629..a9a559e 100644 --- a/zones.c +++ b/zones.c @@ -488,7 +488,8 @@ fw3_print_zone_chains(struct fw3_state *state, enum fw3_family family, struct fw3_zone *zone; list_for_each_entry(zone, &state->zones, list) - print_zone_chain(state, family, table, reload, zone); + if (!hasbit(zone->flags[0], FW3_FLAG_DELETED)) + print_zone_chain(state, family, table, reload, zone); } void @@ -498,7 +499,8 @@ fw3_print_zone_rules(struct fw3_state *state, enum fw3_family family, struct fw3_zone *zone; list_for_each_entry(zone, &state->zones, list) - print_zone_rule(state, family, table, reload, zone); + if (!hasbit(zone->flags[0], FW3_FLAG_DELETED)) + print_zone_rule(state, family, table, reload, zone); } void