From: Ted Lemon Date: Thu, 3 Feb 2000 04:31:46 +0000 (+0000) Subject: Take advantage of hacked resolver. X-Git-Tag: V3-BETA-2-PATCH-1~335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44fe7220d1110982a8d5eabca74f31519f839353;p=thirdparty%2Fdhcp.git Take advantage of hacked resolver. --- diff --git a/common/tree.c b/common/tree.c index b10c6ede3..67a8efc29 100644 --- a/common/tree.c +++ b/common/tree.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: tree.c,v 1.74 2000/02/02 20:01:41 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tree.c,v 1.75 2000/02/03 04:31:46 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1790,13 +1790,7 @@ int evaluate_numeric_expression (result, packet, lease, /* Do the update and record the error code, if there was an error; otherwise set it to NOERROR. */ - if (minires_nupdate (&res, ISC_LIST_HEAD (uq), NULL)) - *result = NOERROR; - else - /* The resolver doesn't return any actual error - codes - just 1 for success, zero for failure! */ - /* *result = res.res_h_errno; */ - *result = SERVFAIL; + *result = minires_nupdate (&res, ISC_LIST_HEAD (uq), NULL); status = 1; print_dns_status ((int)*result, &uq);