]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_helper: fix invalid passed option to check_inverse
authorJan Engelhardt <jengelh@medozas.de>
Thu, 25 Jun 2009 17:41:28 +0000 (19:41 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 25 Jun 2009 17:41:28 +0000 (19:41 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_helper.c

index 7b56bef43a7c752ae6b9f39fb68a528e6fded012..b136d8a6377a900d42837bad0106c43206aba928 100644 (file)
@@ -31,7 +31,7 @@ helper_parse(int c, char **argv, int invert, unsigned int *flags,
                if (*flags)
                        xtables_error(PARAMETER_PROBLEM,
                                        "helper match: Only use --helper ONCE!");
-               xtables_check_inverse(optarg, &invert, &invert, 0);
+               xtables_check_inverse(optarg, &invert, &optind, 0);
                strncpy(info->name, optarg, 29);
                info->name[29] = '\0';
                if (invert)