2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

conform to resolver api changes

This commit is contained in:
Bob Halley 2000-01-21 02:48:28 +00:00
parent 46cfdf4977
commit 7fc55ea79f
2 changed files with 4 additions and 6 deletions

View File

@ -253,8 +253,7 @@ byaddr_find(dns_byaddr_t *byaddr, dns_fetchevent_t *event) {
} else { } else {
result = event->result; result = event->result;
fname = dns_fixedname_name(&event->foundname); fname = dns_fixedname_name(&event->foundname);
dns_resolver_destroyfetch(byaddr->view->resolver, dns_resolver_destroyfetch(&byaddr->fetch);
&byaddr->fetch);
INSIST(event->rdataset == &byaddr->rdataset); INSIST(event->rdataset == &byaddr->rdataset);
INSIST(event->sigrdataset == NULL); INSIST(event->sigrdataset == NULL);
/* /*
@ -459,8 +458,7 @@ dns_byaddr_cancel(dns_byaddr_t *byaddr) {
byaddr->canceled = ISC_TRUE; byaddr->canceled = ISC_TRUE;
if (byaddr->fetch != NULL) { if (byaddr->fetch != NULL) {
INSIST(byaddr->view != NULL); INSIST(byaddr->view != NULL);
dns_resolver_cancelfetch(byaddr->view->resolver, dns_resolver_cancelfetch(byaddr->fetch);
byaddr->fetch);
} }
} }

View File

@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: zone.c,v 1.57 2000/01/20 01:13:42 gson Exp $ */ /* $Id: zone.c,v 1.58 2000/01/21 02:48:28 halley Exp $ */
#include <config.h> #include <config.h>
@ -344,7 +344,7 @@ zone_free(dns_zone_t *zone) {
if (zone->res != NULL) if (zone->res != NULL)
dns_resolver_detach(&zone->res); dns_resolver_detach(&zone->res);
if (zone->fetch != NULL) if (zone->fetch != NULL)
dns_resolver_destroyfetch(zone->res, &zone->fetch); dns_resolver_destroyfetch(&zone->fetch);
if (zone->task != NULL) if (zone->task != NULL)
isc_task_detach(&zone->task); isc_task_detach(&zone->task);
if (zone->socketmgr != NULL) if (zone->socketmgr != NULL)