]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Reset the 'result' before using it again
authorAram Sargsyan <aram@isc.org>
Wed, 23 Aug 2023 11:50:02 +0000 (11:50 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Thu, 31 Aug 2023 09:40:54 +0000 (09:40 +0000)
The 'result' variable should be reset to ISC_R_NOTFOUND again,
because otherwise a log message could be logged about not being
able to get the TLS configuration based on on the 'result' value
from the previous calls to get the TSIG key.

lib/dns/zone.c

index d46349090829076c3f3b8c92cd21237c43314549..f9918d172f1b23001b017d3803626494d712f34f 100644 (file)
@@ -17722,6 +17722,11 @@ got_transfer_quota(void *arg) {
                              isc_result_totext(result));
        }
 
+       /*
+        * Get the TLS transport for the primary, if configured
+        */
+       result = ISC_R_NOTFOUND;
+
        if (dns_remote_tlsname(&zone->primaries) != NULL) {
                dns_view_t *view = dns_zone_getview(zone);
                dns_name_t *tlsname = dns_remote_tlsname(&zone->primaries);