Revert "Use dLen in TSIG too"

This reverts commit 37406413d7.
This commit is contained in:
Miek Gieben 2014-02-14 20:05:51 +00:00
parent c46b0e07c3
commit 83efab6078
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() + dLen(rr.Algorithm) + 6 +
return rr.Hdr.len() + len(rr.Algorithm) + 1 + 6 +
4 + len(rr.MAC)/2 + 1 + 6 + len(rr.OtherData)/2 + 1
}