Make sure that NOTRACK is linked into firewall3 if it is part of libext*.a
[project/firewall3.git] / ipsets.c
index d33873a..06aafb7 100644 (file)
--- a/ipsets.c
+++ b/ipsets.c
@@ -346,8 +346,11 @@ fw3_create_ipsets(struct fw3_state *state)
                create_ipset(ipset, state);
        }
 
-       fw3_pr("quit\n");
-       fw3_command_close();
+       if (exec)
+       {
+               fw3_pr("quit\n");
+               fw3_command_close();
+       }
 
        /* wait for ipsets to appear */
        list_for_each_entry(ipset, &state->ipsets, list)