-/* $OpenBSD: getaddrinfo.c,v 1.16 2000/03/13 12:26:56 itojun Exp $ */
+/* $OpenBSD: getaddrinfo.c,v 1.17 2000/03/16 14:08:55 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
return (n);
}
n = res_send(buf, n, answer, anslen);
+#if 0
if (n < 0) {
#ifdef DEBUG
if (_res.options & RES_DEBUG)
h_errno = TRY_AGAIN;
return (n);
}
+#endif
- if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
+ if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
rcode = hp->rcode; /* record most recent error */
#ifdef DEBUG
if (_res.options & RES_DEBUG)