assert(pkt && ctx);
struct kr_request *req = ctx->data;
struct kr_query *query = req->current_query;
-#if defined(ENABLE_COOKIES)
if (!query || (query->flags & (QUERY_RESOLVED|QUERY_BADCOOKIE_AGAIN))) {
-#else /* !defined(ENABLE_COOKIES) */
- if (!query || (query->flags & QUERY_RESOLVED)) {
-#endif /* defined(ENABLE_COOKIES) */
return ctx->state;
}
if (qry->flags & (QUERY_AWAIT_IPV4|QUERY_AWAIT_IPV6)) {
kr_nsrep_elect_addr(qry, request->ctx);
-#if defined(ENABLE_COOKIES)
} else if (!qry->ns.name || !(qry->flags & (QUERY_TCP|QUERY_STUB|QUERY_BADCOOKIE_AGAIN))) { /* Keep NS when requerying/stub/badcookie. */
-#else /* !defined(ENABLE_COOKIES) */
- } else if (!qry->ns.name || !(qry->flags & (QUERY_TCP|QUERY_STUB))) { /* Keep NS when requerying/stub. */
-#endif /* defined(ENABLE_COOKIES) */
/* Root DNSKEY must be fetched from the hints to avoid chicken and egg problem. */
if (qry->sname[0] == '\0' && qry->stype == KNOT_RRTYPE_DNSKEY) {
kr_zonecut_set_sbelt(request->ctx, &qry->zone_cut);