[PATCH nft] segtree: incorrect handling of last element in get_set_decompose()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add range to the list of matching elements.

Fixes: 95629758a5ec ("segtree: bogus range via get set element on existing elements")
Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 src/segtree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/segtree.c b/src/segtree.c
index dc457d6bc1b7..4ee09884cbde 100644
--- a/src/segtree.c
+++ b/src/segtree.c
@@ -753,7 +753,7 @@ int get_set_decompose(struct table *table, struct set *set)
 	if (left) {
 		range = get_set_interval_end(table, set->handle.set.name, left);
 		if (range)
-			compound_expr_add(new_init, left);
+			compound_expr_add(new_init, range);
 		else
 			compound_expr_add(new_init, expr_clone(left));
 	}
-- 
2.11.0




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux