log_response(client, client->message->rcode);
}
- if (!client->nodetach) {
- isc_nmhandle_detach(&client->reqhandle);
- }
+ isc_nmhandle_detach(&client->reqhandle);
}
static void
log_response(client, rcode);
}
- if (!client->nodetach) {
- isc_nmhandle_detach(&client->reqhandle);
- }
+ isc_nmhandle_detach(&client->reqhandle);
}
static void
inc_stats(client, ns_statscounter_failure);
}
ns_client_drop(client, result);
-
- if (!client->nodetach) {
- isc_nmhandle_detach(&client->reqhandle);
- }
+ isc_nmhandle_detach(&client->reqhandle);
}
static void
qctx->zversion = NULL;
}
- if (qctx->fresp != NULL && !qctx->client->nodetach) {
+ if (qctx->fresp != NULL) {
free_fresp(qctx->client, &qctx->fresp);
}
}
client->query.attributes |= NS_QUERYATTR_RECURSIONOK;
}
client->query.dboptions &= ~DNS_DBFIND_STALETIMEOUT;
- client->nodetach = false;
LOCK(&client->query.fetchlock);
INSIST(FETCH_RECTYPE_NORMAL(client) == resp->fetch ||
ns_query_done(query_ctx_t *qctx) {
isc_result_t result = ISC_R_UNSET;
const dns_namelist_t *secs = qctx->client->message->sections;
- bool nodetach, partial_result_with_servfail = false;
+ bool partial_result_with_servfail = false;
CCTRACE(ISC_LOG_DEBUG(3), "ns_query_done");
CALL_HOOK(NS_QUERY_DONE_SEND, qctx);
- /*
- * Client may have been detached after query_send(), so
- * we test and store the flag state here, for safety.
- */
- nodetach = qctx->client->nodetach;
query_send(qctx->client);
if (qctx->refresh_rrset) {
query_stale_refresh(qctx->client);
}
- if (!nodetach) {
- qctx->detach_client = true;
- }
+ qctx->detach_client = true;
+
return (qctx->result);
cleanup: