mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
[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.
This commit is contained in:
@@ -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>
|
2008-03-03 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
[BZ #5818]
|
[BZ #5818]
|
||||||
|
@@ -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.
|
This file is part of the GNU C Library.
|
||||||
Extended from original form by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
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)
|
if (host_buffer.buf != orig_host_buffer)
|
||||||
free (host_buffer.buf);
|
free (host_buffer.buf);
|
||||||
if (status != NSS_STATUS_SUCCESS)
|
if (status != NSS_STATUS_SUCCESS)
|
||||||
{
|
return status;
|
||||||
*h_errnop = h_errno;
|
|
||||||
*errnop = errno;
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef SUNSECURITY
|
#ifdef SUNSECURITY
|
||||||
This is not implemented because it is not possible to use the current
|
This is not implemented because it is not possible to use the current
|
||||||
|
Reference in New Issue
Block a user