Commit d09da861 authored by Marek Vavruša's avatar Marek Vavruša

lib/resolve: response marked as resolved too early

parent 5bccaa97
......@@ -367,8 +367,10 @@ int kr_resolve_produce(struct kr_request *request, struct sockaddr **dst, int *t
case KNOT_STATE_CONSUME: break;
case KNOT_STATE_DONE:
default: /* Current query is done */
if (qry->flags & QUERY_RESOLVED) {
kr_rplan_pop(rplan, qry);
}
knot_overlay_reset(&request->overlay);
kr_rplan_pop(rplan, qry);
return kr_rplan_empty(rplan) ? KNOT_STATE_DONE : KNOT_STATE_PRODUCE;
}
......
Markdown is supported
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