]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Dig: do not hang on TLS context creation errors
authorArtem Boldariev <artem@boldariev.com>
Thu, 14 Apr 2022 15:39:20 +0000 (18:39 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 27 Apr 2022 13:28:23 +0000 (16:28 +0300)
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.

bin/dig/dighost.c

index a4c2865509df3a2dda9e171bac68e1dbacf480ca..7bbd4fafd20e632101728074f6ca8ee0311fe50f 100644 (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();