need to add test for dynamic updates

This commit is contained in:
Miek Gieben 2012-12-09 21:17:16 +01:00
parent 29fa0ac7c0
commit 9147aad21e
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
* allow multiple edns0 options to exist in the record when converting
from/to wireformat
* NSEC3 support propper in the zone structure(s)
* Test all rdata packing with zero rdata -- allowed for dynamic updates
## Nice to have

1
msg.go
View File

@ -464,6 +464,7 @@ func packStructValue(val reflect.Value, msg []byte, off int, compression map[str
return lenmsg, &Error{Err: "overflow packing a"}
}
case `dns:"aaaa"`:
// fv.Len TODO(mg) dynamisc updates?
if fv.Len() > net.IPv6len || off+fv.Len() > lenmsg {
return lenmsg, &Error{Err: "overflow packing aaaa"}
}