projects
/
project
/
firewall3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d9230
)
Fix another crash bug if ipsets are supported but none is declared
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 21 May 2013 18:03:13 +0000
(20:03 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 21 May 2013 18:03:13 +0000
(20:03 +0200)
ipsets.c
patch
|
blob
|
history
diff --git
a/ipsets.c
b/ipsets.c
index d33873a249fce4b7d9d4b222b25e5415fc34f220..06aafb77ecab50be9b5ffbdb8f917183e9b176b9 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)