]> git.ipfire.org Git - thirdparty/nftables.git/commit
expr_postprocess: Avoid an unintended fall through
authorPhil Sutter <phil@nwl.cc>
Thu, 20 May 2021 13:11:37 +0000 (15:11 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 20 May 2021 14:55:02 +0000 (16:55 +0200)
commit113ed02e1e69b53e145f92db1c8a0a5bf1e742f4
treea57facd7bc0f040d43c2fe0d43058d79ff2733a0
parent91eacf6ae9d57b52ad6e945b91d749c4db0d2b23
expr_postprocess: Avoid an unintended fall through

Parsing a range expression, the switch case fell through to prefix
expression case, thereby recursing once more for expr->left. This seems
not to have caused harm, but is certainly not intended.

Fixes: ee4391d0ac1e7 ("nat: transform range to prefix expression when possible")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/netlink_delinearize.c