From 6cab7fc6277fddbbd484c149d41c0d803d3c9748 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Wed, 23 Aug 2023 11:50:02 +0000 Subject: [PATCH] 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. --- lib/dns/zone.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index d463490908..f9918d172f 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);