]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't detach xfr in dns_xfrin_shutdown()
authorOndřej Surý <ondrej@isc.org>
Tue, 4 Apr 2023 08:26:41 +0000 (10:26 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Apr 2023 08:26:41 +0000 (10:26 +0200)
commit05bb89267ebdf8337e5b24f362aee49ee3018942
tree9112cd3d64c29d71f6164e94cc666f5510099158
parent2f76fd414263e71cd9d9f77f59eb42777d6143be
Don't detach xfr in dns_xfrin_shutdown()

As we are now using dispatch instead of netmgr for XFR TCP connection,
the xfrin_recv_done() will be called when cancelling the dispatch with
ISC_R_CANCELED.  This could lead to double detach from the dns_xfrin_t,
one in the xfrin_recv_done() and one in the dns_xfrin_shutdown().

Remove the extra detach from the dns_xfrin_shutdown() and rely on the
dispatch read callback to be always called.
lib/dns/xfrin.c