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

lib/resolve: clear ‘cached’ flag on requery

if the flag is left on, it prevents further caching
parent 16b60fed
No related branches found
No related tags found
No related merge requests found
......@@ -347,6 +347,8 @@ int kr_resolve_consume(struct kr_request *request, knot_pkt_t *packet)
/* Pop query if resolved. */
if (qry->flags & QUERY_RESOLVED) {
kr_rplan_pop(rplan, qry);
} else { /* Clear query flags for next attempt */
qry->flags &= ~QUERY_CACHED;
}
knot_overlay_reset(&request->overlay);
......
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