From e58b3f41aad8337749358c8f5393883ceab25dd9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 7 Jun 2013 14:24:47 +0200 Subject: 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 --- src/table.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/table.c') diff --git a/src/table.c b/src/table.c index 937f9b5..f21a6ed 100644 --- a/src/table.c +++ b/src/table.c @@ -60,6 +60,9 @@ void nft_table_attr_unset(struct nft_table *t, uint16_t attr) } } break; + case NFT_TABLE_ATTR_FLAGS: + case NFT_TABLE_ATTR_FAMILY: + break; default: return; } -- cgit v1.2.3