summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-03-01 19:48:10 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-04-06 12:54:22 +0200
commit458d84de2412b43604a8efe2b82a2084a2859a46 (patch)
treea8cabfd4c263d61cd2f410df1e4fb24354c9b5af /extensions
parenta239728ec064666025de2723997d87b176d57fd6 (diff)
extensions: add missing checks for specific flags (2)
Addendum to v1.4.10-75-g4e5d4bf. It does not make sense to use ipv6header's --soft without specifying any options. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libip6t_ipv6header.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c
index 187e0a43..c05cedbb 100644
--- a/extensions/libip6t_ipv6header.c
+++ b/extensions/libip6t_ipv6header.c
@@ -202,7 +202,9 @@ ipv6header_parse(int c, char **argv, int invert, unsigned int *flags,
static void ipv6header_check(unsigned int flags)
{
- if (!flags) xtables_error(PARAMETER_PROBLEM, "ip6t_ipv6header: no options specified");
+ if (!(flags & IPV6_HDR_HEADER))
+ xtables_error(PARAMETER_PROBLEM,
+ "ip6t_ipv6header: no options specified");
}
static void