Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | iptopt: fix crash with invalid field/type combo | Florian Westphal | 2021-12-07 | 1 | -0/+7 |
% nft describe ip option rr value segmentation fault after this fix, this exits with 'Error: unknown ip option type/field'. Problem is that 'rr' doesn't have a value template, so the template struct is all-zeroes, so we crash when trying to use tmpl->dtype (its NULL). Furthermore, expr_describe tries to print expr->identifier but expr is exthdr, not symbol: ->identifier contains garbage. Signed-off-by: Florian Westphal <fw@strlen.de> |