summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2006-04-21 11:56:30 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2006-04-21 11:56:30 +0000
commitf28f8e0decbd110aa62db5a6a7ba4fcbb7689020 (patch)
treebbb846708e68471e699337d271f2b7dca4864b7a /ip6tables.c
parentbfb6c20f3c3ad5746bdea4a2593f03fd5afbacc4 (diff)
cmdflags is used in cmd2char() to return the option for a command. It uses the
bit position of the command mask as an index in the array. There's no entry for CMD_CHECK (0x0800U), so lookups for CMD_RENAME_CHAIN (0x1000U) index outside the array. (Closes: #463)
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ip6tables.c b/ip6tables.c
index a375a2e..ae3cb62 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -81,8 +81,7 @@
#define CMD_NEW_CHAIN 0x0100U
#define CMD_DELETE_CHAIN 0x0200U
#define CMD_SET_POLICY 0x0400U
-#define CMD_CHECK 0x0800U
-#define CMD_RENAME_CHAIN 0x1000U
+#define CMD_RENAME_CHAIN 0x0800U
#define NUMBER_OF_CMD 13
static const char cmdflags[] = { 'I', 'D', 'D', 'R', 'A', 'L', 'F', 'Z',
'N', 'X', 'P', 'E' };