summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rule.c b/src/rule.c
index 1e712a55..09d1ffd4 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -907,7 +907,7 @@ static int do_list_tables(struct netlink_ctx *ctx, struct cmd *cmd)
if (netlink_list_tables(ctx, &cmd->handle, &cmd->location) < 0)
return -1;
- list_for_each_entry(table, &table_list, list)
+ list_for_each_entry(table, &ctx->list, list)
printf("table %s %s\n",
family2str(table->handle.family),
table->handle.table);