if (!rv)
fprintf(stderr, "iptc_commit(): %s\n", iptc_strerror(errno));
}
+}
+void
+fw3_ipt_close(struct fw3_ipt_handle *h)
+{
if (h->libv)
{
while (h->libc > 0)
void fw3_ipt_commit(struct fw3_ipt_handle *h);
+void fw3_ipt_close(struct fw3_ipt_handle *h);
+
struct fw3_ipt_rule *fw3_ipt_rule_new(struct fw3_ipt_handle *h);
void fw3_ipt_rule_proto(struct fw3_ipt_rule *r, struct fw3_protocol *proto);
}
fw3_ipt_commit(handle);
+ fw3_ipt_close(handle);
}
family_set(run_state, family, false);
if (!print_family)
fw3_ipt_commit(handle);
+
+ fw3_ipt_close(handle);
}
if (!print_family)
fw3_flush_rules(handle, run_state, true);
fw3_flush_zones(handle, run_state, true);
fw3_ipt_commit(handle);
+ fw3_ipt_close(handle);
}
family_set(run_state, family, false);
fw3_print_default_tail_rules(handle, cfg_state, true);
fw3_ipt_commit(handle);
+ fw3_ipt_close(handle);
}
fw3_print_includes(cfg_state, family, true);