summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libipt_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libipt_helper.c b/extensions/libipt_helper.c
index 52047e4..10b39d7 100644
--- a/extensions/libipt_helper.c
+++ b/extensions/libipt_helper.c
@@ -44,6 +44,9 @@ parse(int c, char **argv, int invert, unsigned int *flags,
switch (c) {
case '1':
+ if (*flags)
+ exit_error(PARAMETER_PROBLEM,
+ "helper match: Only use --helper ONCE!");
check_inverse(optarg, &invert, &invert, 0);
strncpy(info->name, optarg, 29);
info->name[29] = '\0';