From: Artem Boldariev Date: Thu, 14 Apr 2022 15:39:20 +0000 (+0300) Subject: Dig: do not hang on TLS context creation errors X-Git-Tag: v9.19.1~44^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5db2838abb3be02e308e124cdde25d2f2da3166b;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index a4c2865509d..7bbd4fafd20 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3035,6 +3035,9 @@ failure_tls: } else { next = NULL; } + if (connectquery != NULL) { + query_detach(&connectquery); + } query_detach(&query); if (next == NULL) { clear_current_lookup();