summaryrefslogtreecommitdiffstats
path: root/src/expr/data_reg.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2024-02-24 10:14:54 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2024-02-26 18:09:49 +0100
commitf15f1e3feb130f131d6f03d4081b569f81b94fce (patch)
treebd9e4ee2b26a7b49939618020e3a54767381e85a /src/expr/data_reg.c
parent7e6a10e4a57aaf72c74c21d2ed7d2be8289d0f6f (diff)
expr: immediate: check for chain attribute to release chain name
Check for chain name attribute to release chain name, for consistency with other existing attributes. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr/data_reg.c')
-rw-r--r--src/expr/data_reg.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c
index 690b23d..d2ccf2e 100644
--- a/src/expr/data_reg.c
+++ b/src/expr/data_reg.c
@@ -206,18 +206,6 @@ int nftnl_parse_data(union nftnl_data_reg *data, struct nlattr *attr, int *type)
return ret;
}
-void nftnl_free_verdict(const union nftnl_data_reg *data)
-{
- switch(data->verdict) {
- case NFT_JUMP:
- case NFT_GOTO:
- xfree(data->chain);
- break;
- default:
- break;
- }
-}
-
int nftnl_data_cpy(union nftnl_data_reg *dreg, const void *src, uint32_t len)
{
int ret = 0;