rule: missing map command expansion
Pablo Neira Ayuso
maintainerPATCH 1/1 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 <[email protected]>
--- src/rule.c | 1 + 1 file changed, 1 insertion(+)
src/rule.c +1 -0
@@ -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);
Signature · 1 line
2.20.1