unbound: fix SLAAC DNS inference

Bug: If DHCPv4 MAC are used to infer SLAAC and the forth position of
the subnet /64 is 0 (X:X:X:0::/64), then DNS records where malformed.

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
Eric Luehrsen
2018-03-19 17:05:14 -04:00
parent 2ab50dff24
commit 3d67dcd3cb
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -94,7 +94,7 @@
adr = ( adr slaac ) ;
if ( split( adr, tmp0, ":" ) >= 8 ) {
if ( split( adr, tmp0, ":" ) > 8 ) {
sub( "::", ":", adr ) ;
}