bind9/lib
Ondřej Surý 2da669490c Fix resquery reference imbalance on TCP connect failure
In fctx_query(), resquery_ref(query) is called before
dns_dispatch_connect() in anticipation of the resquery_connected()
callback consuming the reference.

When dns_dispatch_connect() fails synchronously on TCP (e.g. from
dns_transport_get_tlsctx() failing in tcp_dispatch_connect()), the
connect callback is never scheduled, so the extra reference is never
consumed.  The error path then tears down the query via manual cleanup
(isc_mem_put) without going through the refcount destructor, leaving
the reference imbalanced.

Fix by dropping the extra reference on the error path, just after
dns_dispatch_done() which cleans up the dispatch entry.
2026-03-10 17:58:43 +01:00
..
dns Fix resquery reference imbalance on TCP connect failure 2026-03-10 17:58:43 +01:00
isc Use clang-format-22 to update formatting 2026-03-04 10:56:41 +01:00
isccc switch isc_md_type_t to a proper enum 2026-02-02 11:12:55 +03:00
isccfg Introduce max-delegation-servers configuration option 2026-03-04 16:13:49 +01:00
ns Use clang-format-22 to update formatting 2026-03-04 10:56:41 +01:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00