diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-08-18 08:22:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-08-18 08:22:52 +0000 |
commit | b6c0f679b1f8f918bbee34e2a8000dac0b9277dc (patch) | |
tree | e6dd6dd030b6cecd3d2d4aadffc8d2652afef010 /sysdeps/posix | |
parent | 0acb7b8370337f6b11d438f9eb2bed21cd0bbb62 (diff) | |
download | glibc-b6c0f679b1f8f918bbee34e2a8000dac0b9277dc.zip glibc-b6c0f679b1f8f918bbee34e2a8000dac0b9277dc.tar.gz glibc-b6c0f679b1f8f918bbee34e2a8000dac0b9277dc.tar.bz2 |
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.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index d87b965..d72457a 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -362,6 +362,7 @@ gaih_inet (const char *name, const struct gaih_service *service, int rc; bool got_ipv6 = false; const char *canon = NULL; + const char *orig_name = name; 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; else { - assert (name != NULL); + assert (orig_name != NULL); /* If the canonical name cannot be determined, use the passed in string. */ - canon = name; + canon = orig_name; } } |