Skip to content
Commit d4b7f29e authored by Florian Westphal's avatar Florian Westphal
Browse files

netfilter: nf_tables: always increment set element count



At this time, set->nelems counter only increments when the set has
a maximum size.

All set elements decrement the counter unconditionally, this is
confusing.

Increment the counter unconditionally to make this symmetrical.
This would also allow changing the set maximum size after set creation
in a later patch.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
parent a4878eea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment