Skip to content
Snippets Groups Projects
Commit 3ec7c46d authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib/iterate: fixed stupid libknot api

parent b68c0072
Branches
Tags
No related merge requests found
......@@ -166,7 +166,7 @@ static int update_answer(const knot_rrset_t *rr, unsigned hint, struct kr_reques
{
/* Scrub DNSSEC records when not requested. */
knot_pkt_t *answer = req->answer;
if (!knot_edns_do(answer->opt_rr)) {
if (answer->opt_rr && !knot_edns_do(answer->opt_rr)) {
if (rr->type != knot_pkt_qtype(answer) && knot_rrtype_is_dnssec(rr->type)) {
return KNOT_STATE_DONE; /* Scrub */
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment