Minimal changes to solve Dependency CVEs [VAULT-871] (#11015)

* minimal changes to solve most of the cves

* cleanup

* finished go mod vendor upgrades
This commit is contained in:
Hridoy Roy
2021-03-01 14:35:40 -08:00
committed by GitHub
parent ed62faf265
commit c41ecae9ba
243 changed files with 48440 additions and 6500 deletions

View File

@@ -3,9 +3,8 @@ package dns
//go:generate go run duplicate_generate.go
// IsDuplicate checks of r1 and r2 are duplicates of each other, excluding the TTL.
// So this means the header data is equal *and* the RDATA is the same. Return true
// is so, otherwise false.
// It's a protocol violation to have identical RRs in a message.
// So this means the header data is equal *and* the RDATA is the same. Returns true
// if so, otherwise false. It's a protocol violation to have identical RRs in a message.
func IsDuplicate(r1, r2 RR) bool {
// Check whether the record header is identical.
if !r1.Header().isDuplicate(r2.Header()) {