if (!print_rules && !reload)
{
- fw3_set_defaults(state);
-
if (fw3_command_pipe(false, "ipset", "-exist", "-"))
{
fw3_create_ipsets(state);
rv = 0;
}
- if (!reload && !print_rules)
- fw3_run_includes(state);
+ if (!rv)
+ {
+ fw3_set_defaults(state);
+
+ if (!reload && !print_rules)
+ fw3_run_includes(state);
- if (!rv && !print_rules)
- fw3_write_statefile(state);
+ if (!print_rules)
+ fw3_write_statefile(state);
+ }
return rv;
}