]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- ip-ratelimit-factor of 1 allows all traffic through, instead of the
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 10 Dec 2018 09:38:50 +0000 (09:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 10 Dec 2018 09:38:50 +0000 (09:38 +0000)
  previous blocking everything.

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

daemon/worker.c
doc/Changelog

index 43cf3c3fd10f2ce66a94452f0746e202d26aae20..f40d1cc2faa7e8f550d16a0619dafb172a9eeda5 100644 (file)
@@ -1175,7 +1175,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
                /* See if we are passed through with slip factor */
                if(worker->env.cfg->ip_ratelimit_factor != 0 &&
                        ub_random_max(worker->env.rnd,
-                                                 worker->env.cfg->ip_ratelimit_factor) == 1) {
+                                                 worker->env.cfg->ip_ratelimit_factor) == 0) {
 
                        char addrbuf[128];
                        addr_to_str(&repinfo->addr, repinfo->addrlen,
index 9d7eb9d015a64ba02f5401b8027aea574c83ecf0..77d4bb5f85c20dabd7b697c4c0c21ab5f346d456 100644 (file)
@@ -1,5 +1,7 @@
 10 December 2018: Wouter
        - Fix config parser memory leaks.
+       - ip-ratelimit-factor of 1 allows all traffic through, instead of the
+         previous blocking everything.
 
 6 December 2018: Wouter
        - Fix dns64 allocation in wrong region for returned internal queries.