summaryrefslogtreecommitdiffstats
path: root/src/rbtree.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-01-04 20:53:52 +0100
committerFlorian Westphal <fw@strlen.de>2016-01-04 20:53:52 +0100
commit4a7973e1f7fb812f187ab50197a8fee748fa4047 (patch)
treea3c6735e1ec3063ada13ea9793f8cde31d990c10 /src/rbtree.c
parent7ad9e1f8ad4ba637be841d0573bdfdcf397f0815 (diff)
netlink: don't handle lhs zero-length expression as concat type
expr->len 0 can appear for some data types whose size can be different based on some external state, e.g. the conntrack src/dst addresses. The nft type is 'invalid/0-length' in the template definition, the size is set (on linearization) based on the network base family, i.e. the type is changed to ip or ipv6 address at a later stage. For delinarization, skip zero-length expression as concat type and give expr_postprocess a chance to fix the types. Without this change the previous patch will result in nft consuming all available memory when trying to display e.g. a 'ct saddr' rule. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/rbtree.c')
0 files changed, 0 insertions, 0 deletions