small bug

This commit is contained in:
Miek Gieben 2011-02-21 19:29:42 +01:00
parent 983ccc7909
commit 865ba16420
1 changed files with 2 additions and 1 deletions

3
msg.go
View File

@ -399,8 +399,9 @@ func packStructValue(val *reflect.StructValue, msg []byte, off int) (off1 int, o
return len(msg), false
}
case "size-hex":
fallthrough;
case "hex":
// There is no length encoded here, for DS at least
// There is no length encoded here
h, e := hex.DecodeString(s)
if e != nil {
//fmt.Fprintf(os.Stderr, "dns: overflow packing domain-name")