diff options
author | Phil Sutter <phil@nwl.cc> | 2023-12-17 13:02:36 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-01-10 16:05:16 +0100 |
commit | 17d724f20e3c97ea8ce8765ca532a3cf49a98b31 (patch) | |
tree | 4f6dee8b1782f81be82a6979da19ba620d450679 /libxtables | |
parent | 075e4de85b96ad905c2113d580290963a7872e67 (diff) |
libxtables: xtoptions: Prevent XTOPT_PUT with XTTYPE_HOSTMASK
Do as the comment in xtopt_parse_hostmask() claims and omit
XTTYPE_HOSTMASK from xtopt_psize array so xtables_option_metavalidate()
will catch the incompatibility.
Fixes: 66266abd17adc ("libxtables: XTTYPE_HOSTMASK support")
Diffstat (limited to 'libxtables')
-rw-r--r-- | libxtables/xtoptions.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libxtables/xtoptions.c b/libxtables/xtoptions.c index 5964a9bf..96946391 100644 --- a/libxtables/xtoptions.c +++ b/libxtables/xtoptions.c @@ -57,7 +57,6 @@ static const size_t xtopt_psize[] = { [XTTYPE_STRING] = -1, [XTTYPE_SYSLOGLEVEL] = sizeof(uint8_t), [XTTYPE_HOST] = sizeof(union nf_inet_addr), - [XTTYPE_HOSTMASK] = sizeof(union nf_inet_addr), [XTTYPE_PROTOCOL] = sizeof(uint8_t), [XTTYPE_PORT] = sizeof(uint16_t), [XTTYPE_PORTRC] = sizeof(uint16_t[2]), |