about summary refs log tree commit diff
path: root/resolv/nss_dns
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-03-04 15:25:19 +0000
committerUlrich Drepper <drepper@redhat.com>2008-03-04 15:25:19 +0000
commit65b4743a614db33ab66ef72a8ad653dbb965849a (patch)
treebe7c02c12c268f074b75a53d39284c8155b7390a /resolv/nss_dns
parent27c377dd04f40e4d0a7e11daad059939e94d9367 (diff)
downloadglibc-65b4743a614db33ab66ef72a8ad653dbb965849a.tar.gz
glibc-65b4743a614db33ab66ef72a8ad653dbb965849a.tar.xz
glibc-65b4743a614db33ab66ef72a8ad653dbb965849a.zip
[BZ #5790]
2008-02-25  Jakub Jelinek  <jakub@redhat.com>
	[BZ #5790]
	* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
	overwrite *h_errnop/*errnop values from getanswer_r in case of
	failure.
Diffstat (limited to 'resolv/nss_dns')
-rw-r--r--resolv/nss_dns/dns-host.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
index def44e9dbf..dfdf9c5dcb 100644
--- a/resolv/nss_dns/dns-host.c
+++ b/resolv/nss_dns/dns-host.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2003, 2004, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2004, 2007, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Extended from original form by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -386,11 +386,7 @@ _nss_dns_gethostbyaddr2_r (const void *addr, socklen_t len, int af,
   if (host_buffer.buf != orig_host_buffer)
     free (host_buffer.buf);
   if (status != NSS_STATUS_SUCCESS)
-    {
-      *h_errnop = h_errno;
-      *errnop = errno;
-      return status;
-    }
+    return status;
 
 #ifdef SUNSECURITY
   This is not implemented because it is not possible to use the current