mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Return a result code when we find a cached or predeclared zone.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#if !defined(lint) && !defined(SABER)
|
#if !defined(lint) && !defined(SABER)
|
||||||
static const char rcsid[] = "$Id: res_findzonecut.c,v 1.7 2000/07/06 06:22:36 mellon Exp $";
|
static const char rcsid[] = "$Id: res_findzonecut.c,v 1.8 2000/07/06 10:10:12 mellon Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -153,8 +153,9 @@ res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
|
|||||||
ISC_LIST_INIT(nsrrs);
|
ISC_LIST_INIT(nsrrs);
|
||||||
|
|
||||||
DPRINTF (("look for a predefined zone statement"));
|
DPRINTF (("look for a predefined zone statement"));
|
||||||
if (find_cached_zone (dname, class, zname, zsize, addrs, naddrs,
|
rcode = find_cached_zone (dname, class, zname, zsize, addrs, naddrs,
|
||||||
&n, zcookie) == ns_r_noerror)
|
&n, zcookie);
|
||||||
|
if (rcode == ns_r_noerror)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
DPRINTF(("get the soa, and see if it has enough glue"));
|
DPRINTF(("get the soa, and see if it has enough glue"));
|
||||||
|
Reference in New Issue
Block a user