mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-14 22:53:34 -04:00
Wrong source address used for IPv6 notify messages
The source address field of 'newnotify' was not updated from the default (0.0.0.0) when the destination address was an IPv6 address. This resulted in the messages failing to be sent. Set the source address to :: when the destination address is an IPv6 address.
This commit is contained in:
parent
9c712eff0a
commit
40fd4cd407
1 changed files with 3 additions and 0 deletions
|
|
@ -12535,6 +12535,9 @@ notify_send(dns_notify_t *notify) {
|
|||
zone_iattach(notify->zone, &newnotify->zone);
|
||||
ISC_LIST_APPEND(newnotify->zone->notifies, newnotify, link);
|
||||
newnotify->dst = dst;
|
||||
if (isc_sockaddr_pf(&dst) == AF_INET6) {
|
||||
isc_sockaddr_any6(&newnotify->src);
|
||||
}
|
||||
startup = ((notify->flags & DNS_NOTIFY_STARTUP) != 0);
|
||||
result = notify_send_queue(newnotify, startup);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue