From: Ted Lemon Date: Fri, 6 Apr 2001 05:42:37 +0000 (+0000) Subject: Fix an incorrect status check that may have been causing a core dump. X-Git-Tag: V3-BETA-2-PATCH-24~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14e8ade5d904a4f03c8ca66cbe9062043ecdec79;p=thirdparty%2Fdhcp.git Fix an incorrect status check that may have been causing a core dump. --- diff --git a/minires/res_findzonecut.c b/minires/res_findzonecut.c index dd49fa03e..b79c479ac 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.12 2001/01/17 16:56:47 mellon Exp $"; +static const char rcsid[] = "$Id: res_findzonecut.c,v 1.13 2001/04/06 05:42:37 mellon Exp $"; #endif /* not lint */ /* @@ -266,7 +266,7 @@ get_soa(res_state statp, const char *dname, ns_class class, /* Is there an SOA? */ rcode = do_query(statp, dname, class, ns_t_soa, resp, &msg, &n); - if (n < 0) { + if (rcode != ISC_R_SUCCESS) { DPRINTF(("get_soa: do_query('%s', %s) failed (%d)", dname, p_class(class), n)); return rcode;