]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: xtoptions: Prevent XTOPT_PUT with XTTYPE_HOSTMASK
authorPhil Sutter <phil@nwl.cc>
Sun, 17 Dec 2023 12:02:36 +0000 (13:02 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 10 Jan 2024 15:05:16 +0000 (16:05 +0100)
commit17d724f20e3c97ea8ce8765ca532a3cf49a98b31
tree4f6dee8b1782f81be82a6979da19ba620d450679
parent075e4de85b96ad905c2113d580290963a7872e67
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")
include/xtables.h
libxtables/xtoptions.c