mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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:
parent
3f34b692e6
commit
6cab7fc627
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue