]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Wed, 11 Apr 2001 19:05:39 +0000 (19:05 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 11 Apr 2001 19:05:39 +0000 (19:05 +0000)
When creating the dispatch manager, pass in the entropy manager.  Otherwise
query ids are completely predictable.

bin/nsupdate/nsupdate.c

index 58a7293f772b016a1abbd565fbd3d48a890fd4b2..722a401086bd25d54ec04bae4fedc9612cd5026e 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nsupdate.c,v 1.75.2.3 2001/02/07 19:26:22 gson Exp $ */
+/* $Id: nsupdate.c,v 1.75.2.4 2001/04/11 19:05:39 gson Exp $ */
 
 #include <config.h>
 
@@ -466,7 +466,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);
@@ -484,9 +487,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;