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

layer/iterate: don't even try to minimize root

parent 5723b1cd
......@@ -50,7 +50,7 @@ static const knot_dname_t *minimized_qname(struct kr_query *query, uint16_t *qty
{
/* Minimization disabled. */
const knot_dname_t *qname = query->sname;
if (query->flags & QUERY_NO_MINIMIZE) {
if (qname[0] == '\0' || query->flags & QUERY_NO_MINIMIZE) {
return qname;
}
......
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