summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libip6t_condition.c8
-rw-r--r--extensions/libipt_condition.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libip6t_condition.c b/extensions/libip6t_condition.c
index 474b4975..783b4662 100644
--- a/extensions/libip6t_condition.c
+++ b/extensions/libip6t_condition.c
@@ -41,11 +41,11 @@ parse(int c, char **argv, int invert, unsigned int *flags,
check_inverse(optarg, &invert, &optind, 0);
- if (*flags)
- exit_error(PARAMETER_PROBLEM,
- "Can't specify multiple conditions");
-
if (c == 'X') {
+ if (*flags)
+ exit_error(PARAMETER_PROBLEM,
+ "Can't specify multiple conditions");
+
if (strlen(argv[optind - 1]) < CONDITION6_NAME_LEN)
strcpy(info->name, argv[optind - 1]);
else
diff --git a/extensions/libipt_condition.c b/extensions/libipt_condition.c
index 41216ca3..f15c94ca 100644
--- a/extensions/libipt_condition.c
+++ b/extensions/libipt_condition.c
@@ -41,11 +41,11 @@ parse(int c, char **argv, int invert, unsigned int *flags,
check_inverse(optarg, &invert, &optind, 0);
- if (*flags)
- exit_error(PARAMETER_PROBLEM,
- "Can't specify multiple conditions");
-
if (c == 'X') {
+ if (*flags)
+ exit_error(PARAMETER_PROBLEM,
+ "Can't specify multiple conditions");
+
if (strlen(argv[optind - 1]) < CONDITION_NAME_LEN)
strcpy(info->name, argv[optind - 1]);
else