"nft list table" command was not displaying the elements of named
set. This was thus not possible to restore a ruleset by using the
listing output. This patch modifies the code to display the elements
of set in all cases.
return -1;
list_for_each_entry_safe(set, nset, &ctx->list, list) {
- if (set->flags & SET_F_ANONYMOUS &&
- netlink_get_setelems(ctx, &set->handle, loc, set) < 0)
+ if (netlink_get_setelems(ctx, &set->handle, loc, set) < 0)
return -1;
list_move_tail(&set->list, &table->sets);
}