expr_postprocess: Avoid an unintended fall through
Phil Sutter
reviewerPATCH 1/1 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 <[email protected]>
--- src/netlink_delinearize.c | 1 + 1 file changed, 1 insertion(+)
src/netlink_delinearize.c +1 -0
@@ -2450,6 +2450,7 @@ static void expr_postprocess(struct rule_pp_ctx *ctx, struct expr **exprp)case EXPR_RANGE :expr_postprocess (ctx, &expr->left);expr_postprocess (ctx, &expr->right); +break ;case EXPR_PREFIX :expr_postprocess (ctx, &expr->prefix);break ;
Signature · 1 line
2.31.1