f8d1bf44b6e8b8f103a7d92e596c45c3cfb463b0
[openwrt/openwrt.git] / package / network / utils / iptables / patches / 101-remove-check-already.patch
1 --- a/libxtables/xtables.c
2 +++ b/libxtables/xtables.c
3 @@ -887,12 +887,6 @@ static void xtables_check_options(const
4
5 void xtables_register_match(struct xtables_match *me)
6 {
7 - if (me->next) {
8 - fprintf(stderr, "%s: match \"%s\" already registered\n",
9 - xt_params->program_name, me->name);
10 - exit(1);
11 - }
12 -
13 if (me->version == NULL) {
14 fprintf(stderr, "%s: match %s<%u> is missing a version\n",
15 xt_params->program_name, me->name, me->revision);
16 @@ -1080,12 +1074,6 @@ void xtables_register_matches(struct xta
17
18 void xtables_register_target(struct xtables_target *me)
19 {
20 - if (me->next) {
21 - fprintf(stderr, "%s: target \"%s\" already registered\n",
22 - xt_params->program_name, me->name);
23 - exit(1);
24 - }
25 -
26 if (me->version == NULL) {
27 fprintf(stderr, "%s: target %s<%u> is missing a version\n",
28 xt_params->program_name, me->name, me->revision);