projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify ipset external checks and optionally initialize ispet name from external...
[project/firewall3.git]
/
options.c
diff --git
a/options.c
b/options.c
index
26aeefe
..
3d30c57
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1057,10
+1057,7
@@
fw3_format_ipset(struct fw3_ipset *ipset, bool invert)
if (!ipset)
return;
- if (ipset->external && *ipset->external)
- name = ipset->external;
- else
- name = ipset->name;
+ name = ipset->external ? ipset->external : ipset->name;
fw3_pr(" -m set %s--match-set %s", invert ? "! " : "", name);