This commit is contained in:
Miek Gieben 2014-08-30 08:45:10 +01:00
parent 5fd5c6d9eb
commit 06fc321c2c
1 changed files with 7 additions and 7 deletions

View File

@ -319,13 +319,13 @@ func TestMsgLength2(t *testing.T) {
func TestMsgLengthCompressionMalformed(t *testing.T) {
// SOA with empty hostmaster, which is illegal
soa := &SOA{Hdr: RR_Header{Name: ".", Rrtype: TypeSOA, Class: ClassINET, Ttl: 12345},
Ns: ".",
Mbox: "",
Serial: 0,
Refresh: 28800,
Retry: 7200,
Expire: 604800,
Minttl: 60}
Ns: ".",
Mbox: "",
Serial: 0,
Refresh: 28800,
Retry: 7200,
Expire: 604800,
Minttl: 60}
m := new(Msg)
m.Compress = true
m.Ns = []RR{soa}