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 d1c5e2c..c025359 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]);
                        }
                }