* [PATCH] set: properly account set size when merging recursive set definitions
@ 2014-03-07 10:21 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2014-03-07 10:21 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
src/evaluate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/evaluate.c b/src/evaluate.c
index f10d0d9..0c19c9f 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -683,6 +683,7 @@ static int expr_evaluate_set(struct eval_ctx *ctx, struct expr **expr)
/* Merge recursive set definitions */
list_splice_tail_init(&i->expressions, &i->list);
list_del(&i->list);
+ set->size += i->size;
set->set_flags |= i->set_flags;
expr_free(i);
} else if (!expr_is_singleton(i))
--
1.8.5.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-07 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 10:21 [PATCH] set: properly account set size when merging recursive set definitions Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).