Skip to content

Commit

Permalink
NS cache lookup bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
semihalev committed Oct 31, 2018
1 parent a8e2201 commit 09c69e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ func (r *Resolver) exchange(server *cache.AuthServer, req *dns.Msg, c *dns.Clien
}

func (r *Resolver) searchCache(q dns.Question, cd bool) (servers *cache.AuthServers, parentdsrr []dns.RR) {
q.Qtype = dns.TypeNS // we should look NS type caches
key := cache.Hash(q, cd)

ns, err := r.Ncache.Get(key)
Expand Down
1 change: 1 addition & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func verifyDS(keyMap map[uint16]*dns.DNSKEY, parentDSSet []dns.RR) error {
if !present {
continue
}
//TODO: miek dns lib doesn't support GOST 34.11 currently
ds := ksk.ToDS(parentDS.DigestType)
if ds == nil {
if i != len(parentDSSet)-1 {
Expand Down

0 comments on commit 09c69e8

Please sign in to comment.