summaryrefslogtreecommitdiff
path: root/rules.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-05-02 17:43:32 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-05-02 17:43:32 +0200
commit78e134ba7cdc473e7cdf0422b863579ac700ac13 (patch)
treea622797f175628714cc12aa4cf6eb59f0858e258 /rules.c
parent3488eecf1a5d9baa1808eaea7670a7aa2931e1ad (diff)
downloadfirewall3-78e134ba7cdc473e7cdf0422b863579ac700ac13.tar.gz
Simplify ipset external checks and optionally initialize ispet name from external value
Diffstat (limited to 'rules.c')
-rw-r--r--rules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.c b/rules.c
index 785621f..7f748eb 100644
--- a/rules.c
+++ b/rules.c
@@ -368,8 +368,8 @@ expand_rule(struct fw3_state *state, enum fw3_family family,
if (!fw3_check_ipset(rule->_ipset))
{
info(" ! Skipping due to missing ipset '%s'",
- (rule->_ipset->external && *rule->_ipset->external) ?
- rule->_ipset->external : rule->_ipset->name);
+ rule->_ipset->external
+ ? rule->_ipset->external : rule->_ipset->name);
return;
}