2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Dig: do not hang on TLS context creation errors

There was a query_detach() call missing in dig, which could lead to
dig hanging on TLS context creation errors. This commit fixes.

The error was introduced because the Strict TLS implementation was
initially made over an older version of the code, where this extra
query_detach() call was not needed.
This commit is contained in:
Artem Boldariev
2022-04-14 18:39:20 +03:00
parent 19b9c2ecf7
commit 5db2838abb

View File

@@ -3035,6 +3035,9 @@ failure_tls:
} else {
next = NULL;
}
if (connectquery != NULL) {
query_detach(&connectquery);
}
query_detach(&query);
if (next == NULL) {
clear_current_lookup();