From: Pablo Neira Ayuso Date: Mon, 22 Jul 2019 11:55:22 +0000 (+0200) Subject: evaluate: missing location for chain nested in table definition X-Git-Tag: v0.9.2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d818d902dc75ef886ee1735c5b9e43d39cc9dd56;p=thirdparty%2Fnftables.git evaluate: missing location for chain nested in table definition error reporting may crash because location is unset. Signed-off-by: Pablo Neira Ayuso --- 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; }