]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #1418: [ip ratelimit] initialize slabhash using
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 31 Aug 2017 12:02:14 +0000 (12:02 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 31 Aug 2017 12:02:14 +0000 (12:02 +0000)
  ip-ratelimit-slabs.

git-svn-id: file:///svn/unbound/trunk@4330 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/cache/infra.c

index 1019c2c36fcb10c1c4da54b8cfbd7dee4ebf02aa..eb537ec8e315bc5850eda34e66de4e6c0c8958e3 100644 (file)
@@ -5,6 +5,8 @@
        - Fix #1417: [dnscrypt] shared secret cache counters, and works when
          dnscrypt is not enabled.  And cache size configuration option.
        - make depend
+       - Fix #1418: [ip ratelimit] initialize slabhash using
+         ip-ratelimit-slabs.
 
 30 August 2017: Wouter
        - updated contrib/fastrpz.patch to apply with configparser changes.
index ca1102ef5f7fb30f08d0b73673f2af49d587b80c..734b7969e7a2eff15b8464eaed9ef5d81d118822 100644 (file)
@@ -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) {