]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: MARK: Sanitize MARK_xlate()
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Nov 2022 15:01:11 +0000 (16:01 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 24 Nov 2022 09:24:06 +0000 (10:24 +0100)
commitc4fc6440a6f39606e38744bfc827852bb68829f4
tree0642ab5fe314eac65bd3d5833efd2c9bb5fecc6e
parente6747f6b1098b2bc7dfd482f287b3f90b351f164
extensions: MARK: Sanitize MARK_xlate()

Since markinfo->mode might contain unexpected values, add a default case
returning zero.

Fixes: afefc7a134ca0 ("extensions: libxt_MARK: Add translation for revision 1 to nft")
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_MARK.c