Skip to content
Snippets Groups Projects
Commit bc52efb7 authored by Mark Karpilovskij's avatar Mark Karpilovskij
Browse files

nameserver: do not solve answer if it was already solved

parent 927cf734
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -418,6 +418,11 @@ static int solve_name(int state, knot_pkt_t *pkt, knotd_qdata_t *qdata)
static int solve_answer(int state, knot_pkt_t *pkt, knotd_qdata_t *qdata, void *ctx)
{
/* Do not solve if already solved, e.g. in a module. */
if (state == KNOTD_IN_STATE_HIT) {
return state;
}
/* Get answer to QNAME. */
state = solve_name(state, pkt, qdata);
......
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