Only emit different ip family warnings if the ip wasn't automatically resolved
[project/firewall3.git] / includes.c
index 42d5b7a..5022fbd 100644 (file)
@@ -135,7 +135,8 @@ fw3_print_includes(struct fw3_state *state, enum fw3_family family, bool reload)
                print_include(include);
        }
 
-       fw3_command_close();
+       if (exec)
+               fw3_command_close();
 }