summaryrefslogtreecommitdiffstats
path: root/src/set.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-06-07 14:24:47 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-07 14:39:15 +0200
commite58b3f41aad8337749358c8f5393883ceab25dd9 (patch)
treef09306892abffbf1e410601519b9e610819401cf /src/set.c
parentdde20393f929f22636dcedd82e5a2fe81394139e (diff)
src: fix nft_*_unset function attribute that don't release data
In (dde2039 src: add nft_*_unset functions), I mangled Arturo's patch to add a default case, but he was intentionally not adding it to unset attributes that require no memory releases. I prefered to add the attributes explicitly in the switch rather on failing back on the default action. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set.c')
-rw-r--r--src/set.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/set.c b/src/set.c
index 029e2f2..8e8adad 100644
--- a/src/set.c
+++ b/src/set.c
@@ -73,6 +73,10 @@ void nft_set_attr_unset(struct nft_set *s, uint16_t attr)
s->name = NULL;
}
break;
+ case NFT_SET_ATTR_FLAGS:
+ case NFT_SET_ATTR_KEY_TYPE:
+ case NFT_SET_ATTR_KEY_LEN:
+ break;
default:
return;
}