From eb9c4c217fd7682cbb4ac7a2b7221d231ea21ed8 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 10 Apr 2001 18:45:05 +0000 Subject: [PATCH] When creating the dispatch manager, pass in the entropy manager. Otherwise query ids are completely predictable. --- bin/nsupdate/nsupdate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 581efa5e46..f8f87efc1b 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -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 @@ -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;