summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-07-21 02:11:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-07-21 14:20:18 +0200
commitb47beb25afd4ebde6c6b46395838d9d397e2ba85 (patch)
treed9d7ab8e2612d3203d0f696a407750dd961b038e /src/rule.c
parent40ef308e19b6db02017a8a650406b0c6d37be750 (diff)
rule: missing map command expansion
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@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rule.c b/src/rule.c
index 6b71dfee..dadb26f8 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);