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.
This commit is contained in:
Aram Sargsyan 2023-08-23 11:50:02 +00:00 committed by Arаm Sаrgsyаn
parent 3f34b692e6
commit 6cab7fc627

View 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);