1999-12-08  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/posix/getaddrinfo.c (gaih_inet): Don't fail if host has
	only IPv6 address.  Reported by Artur Frysiak <wiget@pld.org.pl>.
This commit is contained in:
Ulrich Drepper 1999-12-08 09:15:00 +00:00
parent 7eda722de5
commit 5ad81f4085
4 changed files with 25 additions and 1 deletions

3
BUGS
View File

@ -25,6 +25,9 @@ situations.
Severity: [ *] to [***]
[** ] Closing shared objects in statically linked binaries most of the
times leads to crashes during the dlopen(). Hard to fix.
[ **] There are problems with signal handling when using LinuxThreads.
[ **] The RPC code is not 64 bit clean. This is getting slowly fixed

View File

@ -1,3 +1,8 @@
1999-12-08 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Don't fail if host has
only IPv6 address. Reported by Artur Frysiak <wiget@pld.org.pl>.
1999-12-07 Jakub Jelinek <jakub@redhat.com>
* string/bits/string2.h (__memset_gc, __mempcpy_small, __strcpy_small,

View File

@ -1,3 +1,17 @@
1999-12-08 Ulrich Drepper <drepper@cygnus.com>
* repertoiremaps/mnemonic.ds: Add U066A, UFE80, UFE81, UFE83,
UFE85, and UFE8B.
* charmaps/IBM864: Add mapping for /x25, /xc1, /xc2, /xc3, /xc4,
and /xc6.
* charmaps/KOI8-U: Fix typo in /x95 entry.
* charmaps/KOI8-R: Correct 0x95 entry.
* charmaps/CP1258: Add /xEC.
* repertoiremaps/mnemonic.ds: Add U0300 and U0301.
* charmaps/IBM874: Add Euro.
* charmaps/ISO-8859-7: Map /xB4 to U0384.
Reported by Bruno Haible <haible@ilog.fr>.
1999-11-29 Ulrich Drepper <drepper@cygnus.com>
* charmaps/ISO-8859-10: Correct alias. This charset was issued in

View File

@ -368,14 +368,16 @@ gaih_inet (const char *name, const struct gaih_service *service,
struct hostent *h;
struct gaih_addrtuple **pat = &at;
int no_data = 0;
int no_inet6_data;
if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET6)
gethosts (AF_INET6, struct in6_addr);
no_inet6_data = no_data;
if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET)
gethosts (AF_INET, struct in_addr);
if (no_data != 0)
if (no_data != 0 && no_inet6_data != 0)
/* We made requests but they turned out no data. The name
is known, though. */
return (GAIH_OKIFUNSPEC | -EAI_NODATA);