mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 15:39:58 -04:00
Merge branch '3520-rndc-detach' into 'v9_18'
fix a possible use-after-detach bug in rndc See merge request isc-projects/bind9!6724
This commit is contained in:
commit
db830aa8aa
1 changed files with 2 additions and 1 deletions
|
|
@ -307,6 +307,7 @@ rndc_senddone(isc_nmhandle_t *handle, isc_result_t result, void *arg) {
|
|||
atomic_load_acquire(&recvs) == 0)
|
||||
{
|
||||
shuttingdown = true;
|
||||
isc_task_detach(&rndc_task);
|
||||
isc_app_shutdown();
|
||||
}
|
||||
}
|
||||
|
|
@ -392,6 +393,7 @@ rndc_recvdone(isc_nmhandle_t *handle, isc_result_t result, void *arg) {
|
|||
atomic_load_acquire(&sends) == 0)
|
||||
{
|
||||
shuttingdown = true;
|
||||
isc_task_detach(&rndc_task);
|
||||
isc_app_shutdown();
|
||||
}
|
||||
}
|
||||
|
|
@ -1081,7 +1083,6 @@ main(int argc, char **argv) {
|
|||
fatal("isc_app_run() failed: %s", isc_result_totext(result));
|
||||
}
|
||||
|
||||
isc_task_detach(&rndc_task);
|
||||
isc_managers_destroy(&netmgr, &taskmgr, NULL);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue