Simplify ipset external checks and optionally initialize ispet name from external...
[project/firewall3.git] / utils.c
diff --git a/utils.c b/utils.c
index f08443e..5ba5d9e 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -514,7 +514,7 @@ write_ipset_uci(struct uci_context *ctx, struct fw3_ipset *s,
 
        struct uci_ptr ptr = { .p = dest };
 
 
        struct uci_ptr ptr = { .p = dest };
 
-       if (!s->enabled || (s->external && *s->external))
+       if (!s->enabled || s->external)
                return;
 
        uci_add_section(ctx, dest, "ipset", &ptr.s);
                return;
 
        uci_add_section(ctx, dest, "ipset", &ptr.s);