Fix TXT validation
This commit is contained in:
parent
1571b7a97b
commit
c7dd37b000
2
msg.go
2
msg.go
|
@ -666,7 +666,7 @@ func unpackStructValue(val reflect.Value, msg []byte, off int) (off1 int, ok boo
|
|||
fv.Set(reflect.ValueOf(servers))
|
||||
case "txt":
|
||||
txt := make([]string, 0)
|
||||
rdlength := int(val.FieldByName("Hdr").FieldByName("Rdlength").Uint())
|
||||
rdlength := off + int(val.FieldByName("Hdr").FieldByName("Rdlength").Uint())
|
||||
Txts:
|
||||
l := int(msg[off])
|
||||
if off+l+1 > lenmsg {
|
||||
|
|
Loading…
Reference in New Issue