]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix xfrin_connect_done() error paths
authorOndřej Surý <ondrej@isc.org>
Mon, 3 Apr 2023 12:56:17 +0000 (14:56 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Apr 2023 08:07:27 +0000 (10:07 +0200)
commit2bb4fa34cc3fcd1232266adfe820d317f2bbf18a
tree33b7f9a97ac7f7ddb1a1a81c6c421de2f24f4240
parent3d341d090b47ccbecaa40e5903cdccd64ce28405
Fix xfrin_connect_done() error paths

The xfrin_connect_done() had several problems:

- it would not add the server to unreachable table in case of the
  failure coming from the dispatch [GL #3989]

- if dns_dispatch_checkperm() disallowed the connection, the xfr would
  be left undetached

- if xfrin_send_request() failed to send the request, the xfr would be
  left undetached

All of these have been fixed in this commit.

(cherry picked from commit 536e439c79fc65de6743af96ee8648e720481f7a)
lib/dns/xfrin.c