]> 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>
Mon, 4 Sep 2023 08:04:52 +0000 (08:04 +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.

(cherry picked from commit 6cab7fc6277fddbbd484c149d41c0d803d3c9748)

lib/dns/zone.c

index 52122ad8d17fc573411b120dcbec73284ccc0b48..34095c0db4d246b94d865afcd7d45ca9083cf2bc 100644 (file)
@@ -18152,6 +18152,11 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
                              isc_result_totext(result));
        }
 
+       /*
+        * Get the TLS transport for the primary, if configured
+        */
+       result = ISC_R_NOTFOUND;
+
        if ((zone->primarytlsnames != NULL) &&
            (zone->primarytlsnames[zone->curprimary] != NULL))
        {