mirror of
https://github.com/miekg/dns.git
synced 2025-10-10 17:31:01 +02:00
Add parse test for octects in the name
This commit is contained in:
parent
301cfde8e5
commit
43cadb2ffd
@ -625,3 +625,12 @@ func TestSRVPacking(t *testing.T) {
|
|||||||
t.Fatalf("Couldn't pack %v\n", msg)
|
t.Fatalf("Couldn't pack %v\n", msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestParseBackslash(t *testing.T) {
|
||||||
|
r, e := NewRR("nul\\000gap.test.globnix.net. 600 IN A 192.0.2.10")
|
||||||
|
if e != nil {
|
||||||
|
t.Fatalf("Could not create RR with \\000 in it")
|
||||||
|
} else {
|
||||||
|
t.Logf("Parsed %s\n", r.String())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user