mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '3571-fix-data-race-in-dns_nta' into 'main'
Don't stop timer from dns__nta_shutdown() Closes #3571 See merge request isc-projects/bind9!6844
This commit is contained in:
commit
3b01b436a2
1 changed files with 1 additions and 5 deletions
|
|
@ -645,7 +645,7 @@ dns__nta_shutdown_cb(dns__nta_t *nta) {
|
|||
REQUIRE(VALID_NTA(nta));
|
||||
|
||||
if (nta->timer) {
|
||||
isc_timer_stop(nta->timer); /* This is superfluous */
|
||||
isc_timer_stop(nta->timer);
|
||||
isc_timer_destroy(&nta->timer);
|
||||
}
|
||||
|
||||
|
|
@ -656,10 +656,6 @@ static void
|
|||
dns__nta_shutdown(dns__nta_t *nta) {
|
||||
REQUIRE(VALID_NTA(nta));
|
||||
|
||||
if (nta->timer != NULL) {
|
||||
isc_timer_stop(nta->timer);
|
||||
}
|
||||
|
||||
dns__nta_ref(nta);
|
||||
isc_async_run(nta->loop, (isc_job_cb)dns__nta_shutdown_cb, nta);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue