Much better message length

This commit is contained in:
Miek Gieben 2012-01-11 20:37:26 +01:00
parent f1a3b31384
commit 416eb764c7
1 changed files with 2 additions and 2 deletions

4
msg.go
View File

@ -1020,8 +1020,8 @@ func (dns *Msg) Pack() (msg []byte, ok bool) {
dh.Nscount = uint16(len(ns))
dh.Arcount = uint16(len(extra))
// TODO: still too much, but better than 64K
msg = make([]byte, dns.Len()*4)
// TODO: still a little too much, but better than 64K...
msg = make([]byte, dns.Len())
// Pack it in: header and then the pieces.
off := 0