mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Add missing period to generated IPv4 6to4 name
The period between the most significant nibble of the IPv4 address and the 2.0.0.2.IP6.ARPA suffix was missing resulting in the wrong name being checked.
This commit is contained in:
parent
5857a4d397
commit
bca63437a1
@ -245,13 +245,12 @@ stf_from_address(dns_name_t *stfself, const isc_netaddr_t *tcpaddr) {
|
|||||||
switch (tcpaddr->family) {
|
switch (tcpaddr->family) {
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
l = ntohl(tcpaddr->type.in.s_addr);
|
l = ntohl(tcpaddr->type.in.s_addr);
|
||||||
result = snprintf(buf, sizeof(buf),
|
result = snprintf(
|
||||||
"%lx.%lx.%lx.%lx.%lx.%lx.%lx.%lx"
|
buf, sizeof(buf),
|
||||||
"2.0.0.2.IP6.ARPA.",
|
"%lx.%lx.%lx.%lx.%lx.%lx.%lx.%lx.2.0.0.2.IP6.ARPA.",
|
||||||
l & 0xf, (l >> 4) & 0xf, (l >> 8) & 0xf,
|
l & 0xf, (l >> 4) & 0xf, (l >> 8) & 0xf,
|
||||||
(l >> 12) & 0xf, (l >> 16) & 0xf,
|
(l >> 12) & 0xf, (l >> 16) & 0xf, (l >> 20) & 0xf,
|
||||||
(l >> 20) & 0xf, (l >> 24) & 0xf,
|
(l >> 24) & 0xf, (l >> 28) & 0xf);
|
||||||
(l >> 28) & 0xf);
|
|
||||||
RUNTIME_CHECK(result < sizeof(buf));
|
RUNTIME_CHECK(result < sizeof(buf));
|
||||||
break;
|
break;
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user