This commit is contained in:
Miek Gieben 2012-10-09 22:01:57 +02:00
parent 8a49e9da90
commit d0d9c92612
1 changed files with 1 additions and 1 deletions

2
msg.go
View File

@ -248,7 +248,7 @@ func PackDomainName(s string, msg []byte, off int, compression map[string]int, c
off++
}
// Dont try to compress '.'
if compression != nil && string(bs[begin:]) != ".'" {
if compression != nil && string(bs[begin:]) != "." {
if p, ok := compression[string(bs[begin:])]; !ok {
// Only offsets smaller than this can be used.
if offset < maxCompressionOffset {