mirror of
https://github.com/mjl-/mox.git
synced 2025-07-15 04:54:35 +03:00
update to latest adns with fix for endless loop for incoming corrupt packets
This commit is contained in:
8
vendor/github.com/mjl-/adns/dnsclient_unix.go
generated
vendored
8
vendor/github.com/mjl-/adns/dnsclient_unix.go
generated
vendored
@ -262,7 +262,9 @@ func checkHeader(p *dnsmessage.Parser, h dnsmessage.Header) error {
|
||||
return errServerTemporarilyMisbehaving
|
||||
}
|
||||
if rh.Type != dnsmessage.TypeOPT {
|
||||
p.SkipAdditional()
|
||||
if err := p.SkipAdditional(); err != nil {
|
||||
return errInvalidDNSResponse
|
||||
}
|
||||
continue
|
||||
}
|
||||
// Only one OPT record is allowed. With multiple we MUST return an error. See RFC
|
||||
@ -328,7 +330,9 @@ func extractExtendedRCode(p dnsmessage.Parser, hdr dnsmessage.Header) (dnsmessag
|
||||
if ahdr.Type == dnsmessage.TypeOPT {
|
||||
return ahdr.ExtendedRCode(hdr.RCode), hasAdd
|
||||
}
|
||||
p.SkipAdditional()
|
||||
if err := p.SkipAdditional(); err != nil {
|
||||
return hdr.RCode, hasAdd
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -7,7 +7,7 @@ github.com/cespare/xxhash/v2
|
||||
# github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
|
||||
## explicit; go 1.19
|
||||
github.com/matttproud/golang_protobuf_extensions/v2/pbutil
|
||||
# github.com/mjl-/adns v0.0.0-20240309142737-2a1aacf346dc
|
||||
# github.com/mjl-/adns v0.0.0-20240509092456-2dc8715bf4af
|
||||
## explicit; go 1.20
|
||||
github.com/mjl-/adns
|
||||
github.com/mjl-/adns/internal/bytealg
|
||||
|
Reference in New Issue
Block a user