mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-15 17:50:51 -04:00
When creating the dispatch manager, pass in the entropy manager. Otherwise
query ids are completely predictable.
This commit is contained in:
parent
4df51a8f53
commit
eb9c4c217f
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue