Changed TestLenCompress to use error inducing name

Long labels cause a packing out of bounds error. It is thrown at msg.go:268 in
the PackDomain function. It happens with messages of any construction (no RR
data, some RR data etc.).
This commit is contained in:
Ray Bejjani 2013-06-25 14:37:04 -07:00 committed by Miek Gieben
parent 57fae415e0
commit d83e816f30

View File

@ -171,7 +171,7 @@ func TestMsgLenTest(t *testing.T) {
return &msg
}
name = "miek.nl."
name = "12345678901234567890123456789012345.12345678.123."
rrA, _ = NewRR(name + " 3600 IN A 192.0.2.1")
rrMx, _ = NewRR(name + " 3600 IN MX 10 " + name)
rrTxt, _ = NewRR(name + ` 3600 IN TXT "I am a TXT"`)