This commit is contained in:
Miek Gieben 2014-01-12 10:22:04 +00:00
parent 00a08d77fc
commit ce360dab57
1 changed files with 1 additions and 1 deletions

2
msg.go
View File

@ -1342,7 +1342,7 @@ func (dns *Msg) PackBuffer(buf []byte) (msg []byte, err error) {
dh.Arcount = uint16(len(extra))
msg = buf
if packLen := dns.packLen()+1; len(msg) < packLen {
if packLen := dns.packLen() + 1; len(msg) < packLen {
msg = make([]byte, packLen)
}