From ff0e8fef74b1307d3c5ae8a0f5dd291c72dd40ad Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 17 Dec 2010 11:45:26 +0100 Subject: Use the 'full' flags of the types and check not allowed flags. --- src/ipset_list_set.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ipset_list_set.c') diff --git a/src/ipset_list_set.c b/src/ipset_list_set.c index d0b0dd6..fcb4549 100644 --- a/src/ipset_list_set.c +++ b/src/ipset_list_set.c @@ -79,8 +79,12 @@ struct ipset_type ipset_list_set0 = { | IPSET_FLAG(IPSET_OPT_BEFORE) | IPSET_FLAG(IPSET_OPT_NAMEREF) | IPSET_FLAG(IPSET_OPT_TIMEOUT), - [IPSET_DEL] = IPSET_FLAG(IPSET_OPT_NAME), - [IPSET_TEST] = IPSET_FLAG(IPSET_OPT_NAME), + [IPSET_DEL] = IPSET_FLAG(IPSET_OPT_NAME) + | IPSET_FLAG(IPSET_OPT_BEFORE) + | IPSET_FLAG(IPSET_OPT_NAMEREF), + [IPSET_TEST] = IPSET_FLAG(IPSET_OPT_NAME) + | IPSET_FLAG(IPSET_OPT_BEFORE) + | IPSET_FLAG(IPSET_OPT_NAMEREF), }, .usage = list_set_usage, -- cgit v1.2.3