Use dLen in TSIG too

This commit is contained in:
Miek Gieben 2014-02-12 12:51:13 +00:00
parent b595183834
commit 37406413d7
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ func (rr *TSIG) String() string {
}
func (rr *TSIG) len() int {
return rr.Hdr.len() + len(rr.Algorithm) + 1 + 6 +
return rr.Hdr.len() + dLen(rr.Algorithm) + 6 +
4 + len(rr.MAC)/2 + 1 + 6 + len(rr.OtherData)/2 + 1
}