Commit e2fe0815 authored by Bob Halley's avatar Bob Halley
Browse files

conform to zt API change

parent 41c82f93
......@@ -187,7 +187,8 @@ ns_notify_start(ns_client_t *client)
FAILC(DNS_R_FORMERR,
"notify question section contains multiple RRs");
result = dns_zt_find(client->view->zonetable, zonename, NULL, &zone);
result = dns_zt_find(client->view->zonetable, zonename, 0, NULL,
&zone);
if (result != ISC_R_SUCCESS)
FAILC(DNS_R_REFUSED,
"not authoritative for notify zone");
......
......@@ -473,7 +473,7 @@ query_simplefind(void *arg, dns_name_t *name, dns_rdatatype_t type,
*/
zone = NULL;
db = NULL;
result = dns_zt_find(client->view->zonetable, name, NULL, &zone);
result = dns_zt_find(client->view->zonetable, name, 0, NULL, &zone);
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH) {
isc_result_t tresult;
tresult = dns_zone_getdb(zone, &db);
......@@ -685,7 +685,7 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
/*
* Find a database to answer the query.
*/
result = dns_zt_find(client->view->zonetable, name, NULL, &zone);
result = dns_zt_find(client->view->zonetable, name, 0, NULL, &zone);
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH) {
isc_result_t tresult;
tresult = dns_zone_getdb(zone, &db);
......@@ -1488,7 +1488,7 @@ query_addbestns(ns_client_t *client) {
* Find the right database.
*/
result = dns_zt_find(client->view->zonetable, client->query.qname,
NULL, &zone);
0, NULL, &zone);
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH)
result = dns_zone_getdb(zone, &db);
if (result == ISC_R_NOTFOUND) {
......@@ -1892,7 +1892,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
* First we must find the right database.
*/
result = dns_zt_find(client->view->zonetable, client->query.qname,
NULL, &zone);
0, NULL, &zone);
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH)
result = dns_zone_getdb(zone, &db);
......
......@@ -1823,7 +1823,8 @@ ns_update_start(ns_client_t *client)
FAILC(DNS_R_FORMERR,
"update zone section contains multiple RRs");
result = dns_zt_find(client->view->zonetable, zonename, NULL, &zone);
result = dns_zt_find(client->view->zonetable, zonename, 0, NULL,
&zone);
if (result != ISC_R_SUCCESS)
FAILC(DNS_R_NOTAUTH,
"not authoritative for update zone");
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: xfrout.c,v 1.57 2000/04/17 19:22:00 explorer Exp $ */
/* $Id: xfrout.c,v 1.58 2000/04/19 18:26:22 halley Exp $ */
#include <config.h>
......@@ -857,7 +857,8 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype)
if (result != ISC_R_NOMORE)
FAILC(DNS_R_FORMERR, "multiple questions");
result = dns_zt_find(client->view->zonetable, question_name, NULL, &zone);
result = dns_zt_find(client->view->zonetable, question_name, 0, NULL,
&zone);
if (result != ISC_R_SUCCESS)
FAILC(DNS_R_NOTAUTH, "non-authoritative zone");
switch(dns_zone_gettype(zone)) {
......
......@@ -127,8 +127,8 @@ query(dns_view_t *view) {
if (reload) {
dns_zone_t *zone = NULL;
result = dns_zt_find(view->zonetable,
dns_fixedname_name(&name), NULL,
&zone);
dns_fixedname_name(&name), 0,
NULL, &zone);
if (result != ISC_R_SUCCESS) {
if (result == DNS_R_PARTIALMATCH)
dns_zone_detach(&zone);
......
......@@ -547,7 +547,7 @@ dns_view_findzone(dns_view_t *view, dns_name_t *name, dns_zone_t **zonep) {
REQUIRE(DNS_VIEW_VALID(view));
result = dns_zt_find(view->zonetable, name, NULL, zonep);
result = dns_zt_find(view->zonetable, name, 0, NULL, zonep);
if (result == DNS_R_PARTIALMATCH) {
dns_zone_detach(zonep);
result = ISC_R_NOTFOUND;
......@@ -589,7 +589,7 @@ dns_view_find(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
*/
zone = NULL;
db = NULL;
result = dns_zt_find(view->zonetable, name, NULL, &zone);
result = dns_zt_find(view->zonetable, name, 0, NULL, &zone);
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH) {
result = dns_zone_getdb(zone, &db);
if (result != ISC_R_SUCCESS && view->cachedb != NULL)
......@@ -794,7 +794,7 @@ dns_view_findzonecut(dns_view_t *view, dns_name_t *name, dns_name_t *fname,
/*
* Find the right database.
*/
result = dns_zt_find(view->zonetable, name, NULL, &zone);
result = dns_zt_find(view->zonetable, name, 0, NULL, &zone);
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH)
result = dns_zone_getdb(zone, &db);
if (result == ISC_R_NOTFOUND) {
......
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