Otherwise we get double the real size in terms of set elements during the interval expansion to individual elements. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/segtree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/segtree.c b/src/segtree.c index 8df82a801ae4..15e8849cd684 100644 --- a/src/segtree.c +++ b/src/segtree.c @@ -552,6 +552,7 @@ int set_to_intervals(struct list_head *errs, struct set *set, return -1; segtree_linearize(&list, set, init, &tree, add); + init->size = 0; list_for_each_entry_safe(ei, next, &list, list) { if (segtree_debug()) { pr_gmp_debug("list: [%.*Zx %.*Zx]\n", @@ -566,6 +567,7 @@ int set_to_intervals(struct list_head *errs, struct set *set, expr_print(init); pr_gmp_debug("\n"); } + return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html