From: Jo-Philipp Wich Date: Tue, 21 May 2013 18:03:13 +0000 (+0200) Subject: Fix another crash bug if ipsets are supported but none is declared X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=commitdiff_plain;h=9767873f92a53e996cc90fd8ff56d72dd3026567 Fix another crash bug if ipsets are supported but none is declared --- diff --git a/ipsets.c b/ipsets.c index d33873a..06aafb7 100644 --- 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)