diff --git a/lib/dns/nta.c b/lib/dns/nta.c index 1b80f1cbdb..1d141ea27c 100644 --- a/lib/dns/nta.c +++ b/lib/dns/nta.c @@ -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); }