Lines Matching defs:qctx
393 query_ctx_t *qctx;
400 * qctx is a stack variable in lib/ns/query.c. Its contents need to be
404 qctx = isc_mem_get(mctx, sizeof(*qctx));
405 if (qctx != NULL) {
406 memmove(qctx, (query_ctx_t *)arg, sizeof(*qctx));
414 *qctxp = qctx;
524 * decrement it in order for it to drop to zero when "qctx" gets
544 query_ctx_t *qctx;
549 qctx = *qctxp;
552 if (qctx->zone != NULL) {
553 dns_zone_detach(&qctx->zone);
555 if (qctx->db != NULL) {
556 dns_db_detach(&qctx->db);
558 if (qctx->client != NULL) {
559 isc_nmhandle_detach(&qctx->client->handle);
562 isc_mem_put(mctx, qctx, sizeof(*qctx));