From: Ted Lemon Date: Thu, 6 Jul 2000 10:10:12 +0000 (+0000) Subject: Return a result code when we find a cached or predeclared zone. X-Git-Tag: V3-BETA-2-PATCH-1~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c12f32cd4415b73e91796ae79f0fa673f376dd67;p=thirdparty%2Fdhcp.git Return a result code when we find a cached or predeclared zone. --- diff --git a/minires/res_findzonecut.c b/minires/res_findzonecut.c index 08be2cfcd..9b761e745 100644 --- a/minires/res_findzonecut.c +++ b/minires/res_findzonecut.c @@ -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"));