diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-08-30 17:03:13 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-08-31 16:38:14 +0200 |
commit | 4e7b7dddebaf836097698574923178eff22a9836 (patch) | |
tree | 08710736d00fdd0ab979c79ffbbd64abcec6c613 /src/rule.c | |
parent | 407bf4ebb52665fd48ecc163baa1f139e609905a (diff) |
src: simplify chain_alloc()
Remove parameter to set the chain name which is only used from netlink
path.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -700,7 +700,7 @@ const char *chain_hookname_lookup(const char *name) /* internal ID to uniquely identify a set in the batch */ static uint32_t chain_id; -struct chain *chain_alloc(const char *name) +struct chain *chain_alloc(void) { struct chain *chain; @@ -709,8 +709,6 @@ struct chain *chain_alloc(const char *name) chain->handle.chain_id = ++chain_id; init_list_head(&chain->rules); init_list_head(&chain->scope.symbols); - if (name != NULL) - chain->handle.chain.name = xstrdup(name); chain->policy = NULL; return chain; |