Skip to content

Commit

Permalink
[BZ #5790]
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Mar 4, 2008
1 parent 27c377d commit 65b4743
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
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.

2008-03-03 Ulrich Drepper <drepper@redhat.com>

[BZ #5818]
Expand Down
8 changes: 2 additions & 6 deletions resolv/nss_dns/dns-host.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 65b4743

Please sign in to comment.