summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 2320a826..9d505776 100644
--- a/src/main.c
+++ b/src/main.c
@@ -216,18 +216,12 @@ out:
int nft_run(void *scanner, struct parser_state *state, struct list_head *msgs)
{
- struct eval_ctx ctx;
- int ret = 0;
+ int ret;
ret = nft_parse(scanner, state);
if (ret != 0 || state->nerrs > 0)
return -1;
- memset(&ctx, 0, sizeof(ctx));
- ctx.msgs = msgs;
- if (evaluate(&ctx, &state->cmds) < 0)
- return -1;
-
return nft_netlink(state, msgs);
}