mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-05 15:00:44 -05:00
[v9_9] Prevent junk from being logged when using "also-notify { <ip> key <keyname>; };"
(cherry picked from commit 4034b098d8)
This commit is contained in:
parent
14e1eac55c
commit
dbda79e4ec
1 changed files with 1 additions and 1 deletions
|
|
@ -10322,13 +10322,13 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
|
|||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup;
|
||||
|
||||
isc_sockaddr_format(¬ify->dst, addrbuf, sizeof(addrbuf));
|
||||
if (notify->key != NULL) {
|
||||
/* Transfer ownership of key */
|
||||
key = notify->key;
|
||||
notify->key = NULL;
|
||||
} else {
|
||||
isc_netaddr_fromsockaddr(&dstip, ¬ify->dst);
|
||||
isc_sockaddr_format(¬ify->dst, addrbuf, sizeof(addrbuf));
|
||||
result = dns_view_getpeertsig(notify->zone->view, &dstip, &key);
|
||||
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND) {
|
||||
notify_log(notify->zone, ISC_LOG_ERROR,
|
||||
|
|
|
|||
Loading…
Reference in a new issue