mirror of git://sourceware.org/git/glibc.git
Update.
2004-08-18 Ulrich Drepper <drepper@redhat.com> * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter pointer in new variable ORIG_NAME and se this pointer when determination of canonical name failed, not the possibly IDN translated value of NAME.
This commit is contained in:
parent
0acb7b8370
commit
b6c0f679b1
|
@ -1,3 +1,10 @@
|
||||||
|
2004-08-18 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
|
||||||
|
pointer in new variable ORIG_NAME and se this pointer when
|
||||||
|
determination of canonical name failed, not the possibly IDN
|
||||||
|
translated value of NAME.
|
||||||
|
|
||||||
2004-08-17 Ulrich Drepper <drepper@redhat.com>
|
2004-08-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
|
* resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
|
||||||
|
|
|
@ -362,6 +362,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
|
||||||
int rc;
|
int rc;
|
||||||
bool got_ipv6 = false;
|
bool got_ipv6 = false;
|
||||||
const char *canon = NULL;
|
const char *canon = NULL;
|
||||||
|
const char *orig_name = name;
|
||||||
|
|
||||||
if (req->ai_protocol || req->ai_socktype)
|
if (req->ai_protocol || req->ai_socktype)
|
||||||
{
|
{
|
||||||
|
@ -778,10 +779,10 @@ gaih_inet (const char *name, const struct gaih_service *service,
|
||||||
canon = h->h_name;
|
canon = h->h_name;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
assert (name != NULL);
|
assert (orig_name != NULL);
|
||||||
/* If the canonical name cannot be determined, use
|
/* If the canonical name cannot be determined, use
|
||||||
the passed in string. */
|
the passed in string. */
|
||||||
canon = name;
|
canon = orig_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue