diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-09-29 08:48:32 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-09-29 08:48:32 +0000 |
commit | 2b13f2ccc0b53bb2f3a4f6dcc006d4dea7149e16 (patch) | |
tree | 4d407d9cf3aaa05d597017bf8c326fda4e960f66 /sysdeps/posix | |
parent | f1750fb9c68854778e6e023ed490ff80e1c90167 (diff) | |
download | glibc-2b13f2ccc0b53bb2f3a4f6dcc006d4dea7149e16.tar.gz glibc-2b13f2ccc0b53bb2f3a4f6dcc006d4dea7149e16.tar.xz glibc-2b13f2ccc0b53bb2f3a4f6dcc006d4dea7149e16.zip |
Updated to fedora-glibc-20040929T0821
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 20e60de393..eb45709be1 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -556,6 +556,14 @@ gaih_inet (const char *name, const struct gaih_service *service, } else return -EAI_ADDRFAMILY; + + dupname: + if (req->ai_flags & AI_CANONNAME) + { + canon = strdup (name); + if (canon == NULL) + return -EAI_MEMORY; + } } if (at->family == AF_UNSPEC) @@ -603,6 +611,8 @@ gaih_inet (const char *name, const struct gaih_service *service, return GAIH_OKIFUNSPEC | -EAI_NONAME; } } + + goto dupname; } } |