need to add test for dynamic updates
This commit is contained in:
parent
29fa0ac7c0
commit
9147aad21e
|
@ -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
1
msg.go
|
@ -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"}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue