bind9/bin/delv
Ondřej Surý 96d3b29968 Skip detach when delv's client never created
run_resolve allocates dns_client_t late, but the cleanup epilogue
called dns_client_detach() unconditionally. When convert_name() or
dns_client_create() failed first, the detach hit a NULL client and
the REQUIRE(DNS_CLIENT_VALID) inside it aborted the process with
SIGABRT instead of a clean error exit.

Guard the detach with a NULL check. Add a digdelv test that runs
delv on a query name whose first label exceeds 63 octets and
asserts the process does not exit 134.

Assisted-by: Claude:claude-opus-4-7
(cherry picked from commit dba102ef16)
2026-04-30 12:07:49 +02:00
..
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
delv.c Skip detach when delv's client never created 2026-04-30 12:07:49 +02:00
delv.rst Change default max-recursion-queries to 50 2024-12-06 06:20:33 +00:00
Makefile.am Add OpenSSL includes as needed 2024-11-15 14:03:44 +00:00