From: Aram Sargsyan Date: Wed, 23 Aug 2023 11:50:02 +0000 (+0000) Subject: Reset the 'result' before using it again X-Git-Tag: v9.19.17~23^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cab7fc6277fddbbd484c149d41c0d803d3c9748;p=thirdparty%2Fbind9.git Reset the 'result' before using it again 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. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index d4634909082..f9918d172f1 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -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);