diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-06-27 10:16:48 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-06-27 11:59:51 +0200 |
commit | 15b3be2e721067e25898a366f009e1a83f908967 (patch) | |
tree | ae7506ee0668037b191ea907a321c758c877eef6 /src/cmd.c | |
parent | f56e901acea6bb5febb24766e0e167989f5242c9 (diff) |
src: remove NFT_NLATTR_LOC_MAX limit for netlink location error reporting
Set might have more than 16 elements, use a runtime array to store
netlink error location.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/cmd.c')
-rw-r--r-- | src/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ void nft_cmd_error(struct netlink_ctx *ctx, struct cmd *cmd, struct mnl_err *err) { const struct location *loc = NULL; - int i; + uint32_t i; for (i = 0; i < cmd->num_attrs; i++) { if (!cmd->attr[i].offset) |