diff options
Diffstat (limited to 'services/cache')
| -rw-r--r-- | services/cache/dns.c | 3 | ||||
| -rw-r--r-- | services/cache/infra.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/services/cache/dns.c b/services/cache/dns.c index 764205e53cbe..da43c504dfa3 100644 --- a/services/cache/dns.c +++ b/services/cache/dns.c @@ -99,6 +99,9 @@ store_rrsets(struct module_env* env, struct reply_info* rep, time_t now, } } /* no break: also copy key item */ + /* the line below is matched by gcc regex and silences + * the fallthrough warning */ + /* fallthrough */ case 1: /* ref updated, item inserted */ rep->rrsets[i] = rep->ref[i].key; } diff --git a/services/cache/infra.c b/services/cache/infra.c index ca1102ef5f7f..734b7969e7a2 100644 --- a/services/cache/infra.c +++ b/services/cache/infra.c @@ -249,7 +249,7 @@ infra_create(struct config_file* cfg) name_tree_init_parents(&infra->domain_limits); } infra_ip_ratelimit = cfg->ip_ratelimit; - infra->client_ip_rates = slabhash_create(cfg->ratelimit_slabs, + infra->client_ip_rates = slabhash_create(cfg->ip_ratelimit_slabs, INFRA_HOST_STARTSIZE, cfg->ip_ratelimit_size, &ip_rate_sizefunc, &ip_rate_compfunc, &ip_rate_delkeyfunc, &ip_rate_deldatafunc, NULL); if(!infra->client_ip_rates) { |
