Skip to content
Snippets Groups Projects
Commit 527577dd authored by Grigorii Demidov's avatar Grigorii Demidov
Browse files

lib/resolve: clear AD flag if there are CNAMEs synthesized from wildcard covered by optouted NSEC3

parent 1174b42d
No related branches found
No related tags found
1 merge request!303policy: add forwarding with validation (by default)
Pipeline #
......@@ -636,6 +636,17 @@ static int answer_finalize(struct kr_request *request, int state)
knot_wire_clear_ad(answer->wire);
}
if (last) {
struct kr_query *cname_parent = last->cname_parent;
while (cname_parent != NULL) {
if (cname_parent->flags & QUERY_DNSSEC_OPTOUT) {
knot_wire_clear_ad(answer->wire);
break;
}
cname_parent = cname_parent->cname_parent;
}
}
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment