After parsing input, rule location data (index or handle) is contained
in cmd->handle, not yet in cmd->rule->handle.
Fixes: 7df42800cf89e ("src: single cache_update() call to build cache before evaluation")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
completeness = cmd->op;
break;
case CMD_OBJ_RULE:
- /* XXX index is set to zero unless this handle_merge() call is
- * invoked, this handle_merge() call is done from the
- * evaluation, which is too late.
- */
- handle_merge(&cmd->rule->handle, &cmd->handle);
-
- if (cmd->rule->handle.index.id)
+ if (cmd->handle.index.id)
completeness = CMD_LIST;
break;
default: