]> git.ipfire.org Git - thirdparty/bind9.git/commit
Stop the timer when shuttingdown the fetch context
authorOndřej Surý <ondrej@isc.org>
Thu, 23 Jan 2025 16:04:24 +0000 (17:04 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 23 Jan 2025 16:46:37 +0000 (17:46 +0100)
commitb14df7d459e7d0950d15adf9741fb06b751cf113
tree7cb03177e6dd15bc91da4f3e1678eb1d38bfed9b
parent8e631afebe1260c8778bb8f6e36233cb1b0d0198
Stop the timer when shuttingdown the fetch context

When canceling the last fetch, we also need to stop the fctx_expired
timer from possibly firing between the fctx_shutdown() call and the
fetch being actually destroyed along with the timer.  As there are
multiple places where fctx_shutdown() is being called without stopping
the timer, move the fctx_stoptimer() to fctx_shutdown() and cleanup the
explicit usage.
lib/dns/resolver.c