Skip to content

Commit 59afdb9

Browse files
committed
Fix IPv6 support in APL RR
1 parent 60598df commit 59afdb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/apl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static really_inline int32_t scan_apl(
4747
if (size < 20)
4848
return -1;
4949
memcpy(octets, af_inet6, sizeof(af_inet6));
50-
if (scan_ip6(text, &octets[4], &count) == -1)
50+
if (scan_ip6(&text[negate+2], &octets[4], &count) == -1)
5151
return -1;
5252
count += negate + 2;
5353
digits[0] = (uint8_t)text[count+1] - '0';

0 commit comments

Comments
 (0)