about summary refs log tree commit diff
path: root/nss/nss_dns/dns-host.c
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-08-16 20:42:32 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-08-16 20:42:32 +0000
commita057e7dcc7912b6440ee15ffb8f1f5823845773e (patch)
treeea73a65fc10172fd555c33be940966dcc4a65cf6 /nss/nss_dns/dns-host.c
parent2de99474c3d4278fb874bbbc12c24c388f786c21 (diff)
downloadglibc-a057e7dcc7912b6440ee15ffb8f1f5823845773e.tar.gz
glibc-a057e7dcc7912b6440ee15ffb8f1f5823845773e.tar.xz
glibc-a057e7dcc7912b6440ee15ffb8f1f5823845773e.zip
*** empty log message *** cvs/libc-960818 cvs/libc-960817
Diffstat (limited to 'nss/nss_dns/dns-host.c')
-rw-r--r--nss/nss_dns/dns-host.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/nss/nss_dns/dns-host.c b/nss/nss_dns/dns-host.c
index f8116fed34..df8677abfa 100644
--- a/nss/nss_dns/dns-host.c
+++ b/nss/nss_dns/dns-host.c
@@ -209,7 +209,10 @@ _nss_dns_gethostbyname2_r (const char *name, int af, struct hostent *result,
 
   n = res_search (name, C_IN, type, host_buffer.buf, sizeof (host_buffer));
   if (n < 0)
-    return errno == ECONNREFUSED ? NSS_STATUS_UNAVAIL : NSS_STATUS_NOTFOUND;
+    return (errno == ECONNREFUSED
+	    || errno == EPFNOSUPPORT
+	    || errno == EAFNOSUPPORT) 
+      ? NSS_STATUS_UNAVAIL : NSS_STATUS_NOTFOUND;
 
   return getanswer_r (&host_buffer, n, name, type, result, buffer, buflen,
 		      h_errnop);
@@ -302,7 +305,10 @@ _nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
   n = res_query (qbuf, C_IN, T_PTR, (u_char *)host_buffer.buf,
 		 sizeof host_buffer);
   if (n < 0)
-    return errno == ECONNREFUSED ? NSS_STATUS_UNAVAIL : NSS_STATUS_NOTFOUND;
+    return (errno == ECONNREFUSED
+	    || errno == EPFNOSUPPORT
+	    || errno == EAFNOSUPPORT) 
+      ? NSS_STATUS_UNAVAIL : NSS_STATUS_NOTFOUND;
 
   status = getanswer_r (&host_buffer, n, qbuf, T_PTR, result, buffer, buflen,
 			h_errnop);