Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothe Litt
BIND
Commits
f0e57c23
Commit
f0e57c23
authored
Mar 02, 2004
by
Mark Andrews
Browse files
1552. [bug] Accept NOTIFY requests from mapped masters if
matched-mapped is set. [RT #10049]
parent
7ad4d54f
Changes
2
Show whitespace changes
Inline
Side-by-side
CHANGES
View file @
f0e57c23
...
@@ -93,7 +93,8 @@
...
@@ -93,7 +93,8 @@
1553. [bug] The windows socket code could stop accepting
1553. [bug] The windows socket code could stop accepting
connections. [RT#10115]
connections. [RT#10115]
1552. [placeholder] rt10049
1552. [bug] Accept NOTIFY requests from mapped masters if
matched-mapped is set. [RT #10049]
1551. [port] Open "/dev/null" before calling chroot().
1551. [port] Open "/dev/null" before calling chroot().
...
...
lib/dns/zone.c
View file @
f0e57c23
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: zone.c,v 1.40
5
2004/0
2/27 20:41:45
marka Exp $ */
/* $Id: zone.c,v 1.40
6
2004/0
3/02 01:19:51
marka Exp $ */
#include <config.h>
#include <config.h>
...
@@ -4601,15 +4601,25 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
...
@@ -4601,15 +4601,25 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
return
(
ISC_R_SUCCESS
);
return
(
ISC_R_SUCCESS
);
}
}
for
(
i
=
0
;
i
<
zone
->
masterscnt
;
i
++
)
isc_netaddr_fromsockaddr
(
&
netaddr
,
from
);
for
(
i
=
0
;
i
<
zone
->
masterscnt
;
i
++
)
{
if
(
isc_sockaddr_eqaddr
(
from
,
&
zone
->
masters
[
i
]))
if
(
isc_sockaddr_eqaddr
(
from
,
&
zone
->
masters
[
i
]))
break
;
break
;
if
(
zone
->
view
->
aclenv
.
match_mapped
&&
IN6_IS_ADDR_V4MAPPED
(
&
from
->
type
.
sin6
.
sin6_addr
)
&&
isc_sockaddr_pf
(
&
zone
->
masters
[
i
])
==
AF_INET
)
{
isc_netaddr_t
na1
,
na2
;
isc_netaddr_fromv4mapped
(
&
na1
,
&
netaddr
);
isc_netaddr_fromsockaddr
(
&
na2
,
&
zone
->
masters
[
i
]);
if
(
isc_netaddr_equal
(
&
na1
,
&
na2
))
break
;
}
}
/*
/*
* Accept notify requests from non masters if they are on
* Accept notify requests from non masters if they are on
* 'zone->notify_acl'.
* 'zone->notify_acl'.
*/
*/
isc_netaddr_fromsockaddr
(
&
netaddr
,
from
);
if
(
i
>=
zone
->
masterscnt
&&
zone
->
notify_acl
!=
NULL
&&
if
(
i
>=
zone
->
masterscnt
&&
zone
->
notify_acl
!=
NULL
&&
dns_acl_match
(
&
netaddr
,
NULL
,
zone
->
notify_acl
,
dns_acl_match
(
&
netaddr
,
NULL
,
zone
->
notify_acl
,
&
zone
->
view
->
aclenv
,
&
zone
->
view
->
aclenv
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment