]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that infra cache host hash does not change after reconfig.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Jun 2017 15:23:17 +0000 (15:23 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Jun 2017 15:23:17 +0000 (15:23 +0000)
git-svn-id: file:///svn/unbound/trunk@4252 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/daemon.c
doc/Changelog

index dad9f86b344e5729c13b05d9c7d8b5aeed8cebe6..e8d56aec9b1dfdc1cbd3a0b814246ff5e7a20dc3 100644 (file)
@@ -421,8 +421,8 @@ daemon_create_workers(struct daemon* daemon)
                daemon->rand = ub_initstate(seed, NULL);
                if(!daemon->rand)
                        fatal_exit("could not init random generator");
+               hash_set_raninit((uint32_t)ub_random(daemon->rand));
        }
-       hash_set_raninit((uint32_t)ub_random(daemon->rand));
        shufport = (int*)calloc(65536, sizeof(int));
        if(!shufport)
                fatal_exit("out of memory during daemon init");
index 500dd3e2db87fa66281c0b80a522cee524a8dad9..e3cf66431cdb58b2ba0240841c417d80efa5a4a0 100644 (file)
@@ -2,6 +2,7 @@
        - Tag 1.6.4 is created with the 1.6.4rc2 contents.
        - Trunk contains 1.6.5, with changes from 26, 27 june.
        - Remove signed unsigned warning from authzone.
+       - Fix that infra cache host hash does not change after reconfig.
 
 26 June 2017: Wouter
        - (for 1.6.5)