isc_task_t * task;
dns_view_t * view;
dns_dispatch_t * dispatch;
- isc_nmhandle_t * handle; /* Permanent pointer to handle */
- isc_nmhandle_t * sendhandle; /* Waiting for send callback */
- isc_nmhandle_t * reqhandle; /* Waiting for request callback
- (query, update, notify) */
- isc_nmhandle_t *fetchhandle; /* Waiting for recursive fetch */
- isc_nmhandle_t *updatehandle; /* Waiting for update callback */
+ isc_nmhandle_t * handle; /* Permanent pointer to handle */
+ isc_nmhandle_t * sendhandle; /* Waiting for send callback */
+ isc_nmhandle_t * reqhandle; /* Waiting for request callback
+ (query, update, notify) */
+ isc_nmhandle_t *fetchhandle; /* Waiting for recursive fetch */
+ isc_nmhandle_t *prefetchhandle; /* Waiting for prefetch / rpzfetch */
+ isc_nmhandle_t *updatehandle; /* Waiting for update callback */
unsigned char * tcpbuf;
dns_message_t * message;
unsigned char * sendbuf;
}
free_devent(client, &event, &devent);
- isc_nmhandle_detach(&client->fetchhandle);
+ isc_nmhandle_detach(&client->prefetchhandle);
}
static void
peeraddr = NULL;
}
- isc_nmhandle_attach(client->handle, &client->fetchhandle);
+ isc_nmhandle_attach(client->handle, &client->prefetchhandle);
options = client->query.fetchoptions | DNS_FETCHOPT_PREFETCH;
result = dns_resolver_createfetch(
client->view->resolver, qname, rdataset->type, NULL, NULL, NULL,
&client->query.prefetch);
if (result != ISC_R_SUCCESS) {
ns_client_putrdataset(client, &tmprdataset);
- isc_nmhandle_detach(&client->fetchhandle);
+ isc_nmhandle_detach(&client->prefetchhandle);
}
dns_rdataset_clearprefetch(rdataset);
}
options = client->query.fetchoptions;
- isc_nmhandle_attach(client->handle, &client->fetchhandle);
+ isc_nmhandle_attach(client->handle, &client->prefetchhandle);
result = dns_resolver_createfetch(
client->view->resolver, qname, type, NULL, NULL, NULL, peeraddr,
client->message->id, options, 0, NULL, client->task,
&client->query.prefetch);
if (result != ISC_R_SUCCESS) {
ns_client_putrdataset(client, &tmprdataset);
- isc_nmhandle_detach(&client->fetchhandle);
+ isc_nmhandle_detach(&client->prefetchhandle);
}
}