Fix rules for custom filter chains
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 21 May 2013 14:44:47 +0000 (16:44 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 21 May 2013 14:44:47 +0000 (16:44 +0200)
defaults.c

index d1c5e2c059e8d2e863ff0c2b074cc323d1a784f2..c02535906c2d6450567087c6d571b5c70f672888 100644 (file)
@@ -243,7 +243,7 @@ fw3_print_default_head_rules(struct fw3_ipt_handle *handle,
                        {
                                r = fw3_ipt_rule_new(handle);
                                fw3_ipt_rule_comment(r, "user chain for %s", chains[i+1]);
-                               fw3_ipt_rule_target(r, chains[i+1]);
+                               fw3_ipt_rule_target(r, "%s_rule", chains[i+1]);
                                fw3_ipt_rule_append(r, chains[i]);
                        }
                }