diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-07 14:24:47 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-07 14:39:15 +0200 |
commit | e58b3f41aad8337749358c8f5393883ceab25dd9 (patch) | |
tree | f09306892abffbf1e410601519b9e610819401cf /src/set_elem.c | |
parent | dde20393f929f22636dcedd82e5a2fe81394139e (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_elem.c')
-rw-r--r-- | src/set_elem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/set_elem.c b/src/set_elem.c index 13047ae..fb03d71 100644 --- a/src/set_elem.c +++ b/src/set_elem.c @@ -55,6 +55,10 @@ void nft_set_elem_attr_unset(struct nft_set_elem *s, uint16_t attr) } } break; + case NFT_SET_ELEM_ATTR_FLAGS: + case NFT_SET_ELEM_ATTR_KEY: /* NFTA_SET_ELEM_KEY */ + case NFT_SET_ELEM_ATTR_VERDICT: /* NFTA_SET_ELEM_DATA */ + break; default: return; } |