2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

log TSIG key name when sending notify

This commit is contained in:
Mark Andrews
2019-05-27 11:00:34 +10:00
parent 9aac7f52f8
commit bb51694d03

View File

@@ -11474,9 +11474,17 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
} }
} }
/* XXX: should we log the tsig key too? */ if (key != NULL) {
notify_log(notify->zone, ISC_LOG_DEBUG(3), "sending notify to %s", char namebuf[DNS_NAME_FORMATSIZE];
addrbuf);
dns_name_format(&key->name, namebuf, sizeof(namebuf));
notify_log(notify->zone, ISC_LOG_DEBUG(3),
"sending notify to %s : TSIG (%s)",
addrbuf, namebuf);
} else {
notify_log(notify->zone, ISC_LOG_DEBUG(3),
"sending notify to %s", addrbuf);
}
options = 0; options = 0;
if (notify->zone->view->peers != NULL) { if (notify->zone->view->peers != NULL) {
dns_peer_t *peer = NULL; dns_peer_t *peer = NULL;