diff options
Diffstat (limited to 'src/ipset_hash_net.c')
-rw-r--r-- | src/ipset_hash_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipset_hash_net.c b/src/ipset_hash_net.c index 665c398..587f891 100644 --- a/src/ipset_hash_net.c +++ b/src/ipset_hash_net.c @@ -76,7 +76,7 @@ struct ipset_type ipset_hash_net0 = { .family = AF_INET46, .dimension = IPSET_DIM_ONE, .elem = { - [IPSET_DIM_ONE] = { + [IPSET_DIM_ONE - 1] = { .parse = ipset_parse_ipnet, .print = ipset_print_ip, .opt = IPSET_OPT_IP @@ -128,7 +128,7 @@ struct ipset_type ipset_hash_net1 = { .family = AF_INET46, .dimension = IPSET_DIM_ONE, .elem = { - [IPSET_DIM_ONE] = { + [IPSET_DIM_ONE - 1] = { .parse = ipset_parse_ip4_net6, .print = ipset_print_ip, .opt = IPSET_OPT_IP |