Maps also need to be split in two commands for proper error reporting. Fixes: c9eae091983a ("src: add CMD_OBJ_SETELEMS") Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/rule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rule.c b/src/rule.c index 6b71dfee0d09..dadb26f85567 100644 --- a/src/rule.c +++ b/src/rule.c @@ -1519,6 +1519,7 @@ void nft_cmd_expand(struct cmd *cmd) list_splice(&new_cmds, &cmd->list); break; case CMD_OBJ_SET: + case CMD_OBJ_MAP: set = cmd->set; memset(&h, 0, sizeof(h)); handle_merge(&h, &set->handle); -- 2.20.1