]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Return a result code when we find a cached or predeclared zone.
authorTed Lemon <source@isc.org>
Thu, 6 Jul 2000 10:10:12 +0000 (10:10 +0000)
committerTed Lemon <source@isc.org>
Thu, 6 Jul 2000 10:10:12 +0000 (10:10 +0000)
minires/res_findzonecut.c

index 08be2cfcda53b2f16e27c627814d9b180f265e02..9b761e74501790bc0fb803f24463741179b4d388 100644 (file)
@@ -1,5 +1,5 @@
 #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 */
 
 /*
@@ -153,8 +153,9 @@ res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
        ISC_LIST_INIT(nsrrs);
 
        DPRINTF (("look for a predefined zone statement"));
-       if (find_cached_zone (dname, class, zname, zsize, addrs, naddrs,
-                             &n, zcookie) == ns_r_noerror)
+       rcode = find_cached_zone (dname, class, zname, zsize, addrs, naddrs,
+                                 &n, zcookie);
+       if (rcode == ns_r_noerror)
                goto done;
 
        DPRINTF(("get the soa, and see if it has enough glue"));