diff options
-rw-r--r-- | usr.sbin/ypserv/yp_dnslookup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c index e330e15..282bdcb 100644 --- a/usr.sbin/ypserv/yp_dnslookup.c +++ b/usr.sbin/ypserv/yp_dnslookup.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yp_dnslookup.c,v 1.10 1997/02/22 16:15:10 peter Exp $ + * $Id: yp_dnslookup.c,v 1.11 1997/07/27 03:41:53 wpaul Exp $ */ /* @@ -65,7 +65,7 @@ #include "yp_extern.h" #ifndef lint -static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.10 1997/02/22 16:15:10 peter Exp $"; +static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.11 1997/07/27 03:41:53 wpaul Exp $"; #endif static char *parse(hp) @@ -390,7 +390,8 @@ void yp_run_dnsq() * query has failed. */ if (hent == NULL) { - if (h_errno == TRY_AGAIN && q->domain && *q->domain) { + if ((h_errno == TRY_AGAIN || h_errno == NO_RECOVERY) + && q->domain && *q->domain) { snprintf(retrybuf, sizeof(retrybuf), "%s.%s", q->name, *q->domain); if (debug) |