Skip to content
Snippets Groups Projects
Commit 617560f8 authored by Grigorii Demidov's avatar Grigorii Demidov Committed by Ondřej Surý
Browse files

layer/iterate: don't return AUTHORITY for positive answers

parent d5963d5a
Branches
Tags
1 merge request!146layer/iterate: don't return AUTHORITY for positive answers
......@@ -581,7 +581,8 @@ static int process_answer(knot_pkt_t *pkt, struct kr_request *req)
return KR_STATE_FAIL;
}
} else if (!query->parent) {
state = pick_authority(pkt, req, true);
const bool to_wire = ((pkt_class & (PKT_NXDOMAIN|PKT_NODATA)) != 0);
state = pick_authority(pkt, req, to_wire);
if (state != kr_ok()) {
return KR_STATE_FAIL;
}
......
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