]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
When creating the dispatch manager, pass in the entropy manager. Otherwise
authorBrian Wellington <source@isc.org>
Tue, 10 Apr 2001 18:45:05 +0000 (18:45 +0000)
committerBrian Wellington <source@isc.org>
Tue, 10 Apr 2001 18:45:05 +0000 (18:45 +0000)
query ids are completely predictable.

bin/nsupdate/nsupdate.c

index 581efa5e46bf3c41a6ce98c1922af3acb9439d77..f8f87efc1bbfc249a371ca9f0a342c9d54bc82f3 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nsupdate.c,v 1.88 2001/03/30 22:48:35 bwelling Exp $ */
+/* $Id: nsupdate.c,v 1.89 2001/04/10 18:45:05 bwelling Exp $ */
 
 #include <config.h>
 
@@ -468,7 +468,10 @@ setup_system(void) {
                }
        }
 
-       result = dns_dispatchmgr_create(mctx, NULL, &dispatchmgr);
+       result = isc_entropy_create(mctx, &entp);
+       check_result(result, "isc_entropy_create");
+
+       result = dns_dispatchmgr_create(mctx, entp, &dispatchmgr);
        check_result(result, "dns_dispatchmgr_create");
 
        result = isc_socketmgr_create(mctx, &socketmgr);
@@ -486,9 +489,6 @@ setup_system(void) {
        result = isc_task_onshutdown(global_task, shutdown_program, NULL);
        check_result(result, "isc_task_onshutdown");
 
-       result = isc_entropy_create(mctx, &entp);
-       check_result(result, "isc_entropy_create");
-
        result = dst_lib_init(mctx, entp, 0);
        check_result(result, "dst_lib_init");
        is_dst_up = ISC_TRUE;