From: Jo-Philipp Wich Date: Tue, 30 Apr 2013 19:03:34 +0000 (+0200) Subject: Send quit comment in fw3_destroy_ipsets() and initialize ipset objects with enabled... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b64f6ca3d43dabc651b829fc7c71d95ed791aee2;p=project%2Ffirewall3.git Send quit comment in fw3_destroy_ipsets() and initialize ipset objects with enabled = true --- diff --git a/ipsets.c b/ipsets.c index 637af7e..eb37d0a 100644 --- a/ipsets.c +++ b/ipsets.c @@ -216,6 +216,8 @@ fw3_alloc_ipset(void) INIT_LIST_HEAD(&ipset->datatypes); + ipset->enabled = true; + return ipset; } @@ -359,6 +361,8 @@ fw3_destroy_ipsets(struct fw3_state *state) fw3_pr("flush %s\n", s->name); fw3_pr("destroy %s\n", s->name); } + + fw3_pr("quit\n"); } struct fw3_ipset *