mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Update miekg/dns
This commit is contained in:
parent
8c43118b03
commit
ee5c9d67a4
73 changed files with 677 additions and 291 deletions
5
vendor/github.com/miekg/dns/msg.go
generated
vendored
5
vendor/github.com/miekg/dns/msg.go
generated
vendored
|
@ -265,6 +265,11 @@ loop:
|
|||
|
||||
wasDot = false
|
||||
case '.':
|
||||
if i == 0 && len(s) > 1 {
|
||||
// leading dots are not legal except for the root zone
|
||||
return len(msg), ErrRdata
|
||||
}
|
||||
|
||||
if wasDot {
|
||||
// two dots back to back is not legal
|
||||
return len(msg), ErrRdata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue