Skip to content

Commit

Permalink
Fix 'bogus proof of DS non-existence' for non-existant DS records in …
Browse files Browse the repository at this point in the history
…the cache
  • Loading branch information
oerdnj authored and Grigorii Demidov committed Feb 23, 2016
1 parent 93bb2f4 commit 1e9aec0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/layer/rrcache.c
Expand Up @@ -183,8 +183,9 @@ static int commit_rr(const char *key, void *val, void *data)
if (rr->type != KNOT_RRTYPE_NS || (rank & KR_RANK_AUTH)) {
if (baton->qry->flags & QUERY_DNSSEC_WANT)
rank |= KR_RANK_SECURE;
if (baton->qry->flags & QUERY_DNSSEC_INSECURE)
rank |= KR_RANK_INSECURE;
}
if (baton->qry->flags & QUERY_DNSSEC_INSECURE) {
rank |= KR_RANK_INSECURE;
}
if (KEY_COVERING_RRSIG(key)) {
return commit_rrsig(baton, rank, rr);
Expand Down

0 comments on commit 1e9aec0

Please sign in to comment.