mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
[master] Prevent junk from being logged when using "also-notify { <ip> key <keyname>; };"
This commit is contained in:
@@ -10947,13 +10947,13 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
|
|||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
isc_sockaddr_format(¬ify->dst, addrbuf, sizeof(addrbuf));
|
||||||
if (notify->key != NULL) {
|
if (notify->key != NULL) {
|
||||||
/* Transfer ownership of key */
|
/* Transfer ownership of key */
|
||||||
key = notify->key;
|
key = notify->key;
|
||||||
notify->key = NULL;
|
notify->key = NULL;
|
||||||
} else {
|
} else {
|
||||||
isc_netaddr_fromsockaddr(&dstip, ¬ify->dst);
|
isc_netaddr_fromsockaddr(&dstip, ¬ify->dst);
|
||||||
isc_sockaddr_format(¬ify->dst, addrbuf, sizeof(addrbuf));
|
|
||||||
result = dns_view_getpeertsig(notify->zone->view, &dstip, &key);
|
result = dns_view_getpeertsig(notify->zone->view, &dstip, &key);
|
||||||
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND) {
|
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND) {
|
||||||
notify_log(notify->zone, ISC_LOG_ERROR,
|
notify_log(notify->zone, ISC_LOG_ERROR,
|
||||||
|
Reference in New Issue
Block a user