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)
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))
{