From d818d902dc75ef886ee1735c5b9e43d39cc9dd56 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 22 Jul 2019 13:55:22 +0200 Subject: evaluate: missing location for chain nested in table definition error reporting may crash because location is unset. Signed-off-by: Pablo Neira Ayuso --- src/evaluate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/evaluate.c b/src/evaluate.c index 429b1150..e7f16ba6 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -3564,6 +3564,7 @@ static int table_evaluate(struct eval_ctx *ctx, struct table *table) } list_for_each_entry(chain, &table->chains, list) { handle_merge(&chain->handle, &table->handle); + ctx->cmd->handle.chain.location = chain->location; if (chain_evaluate(ctx, chain) < 0) return -1; } -- cgit v1.2.3