This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/15272] getaddrinfo() returns EAI_SYSTEM with AF_UNSPEC and SOCK_STREAM on ARM
- From: "dan at coneharvesters dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 11 Jan 2014 20:50:37 +0000
- Subject: [Bug network/15272] getaddrinfo() returns EAI_SYSTEM with AF_UNSPEC and SOCK_STREAM on ARM
- Auto-submitted: auto-generated
- References: <bug-15272-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15272
--- Comment #13 from Dan Fandrich <dan at coneharvesters dot com> ---
Sorry, I just noticed that second patch has some cruft from debugging. This is
all that's actually needed as the workaround:
--- neon-0.29.6/src/ne_socket.c.orig 2014-01-04 14:42:09.665502390 +0000
+++ neon-0.29.6/src/ne_socket.c 2014-01-05 00:56:28.287272839 +0000
@@ -925,8 +925,8 @@
{
#ifdef USE_GAI_ADDRCONFIG /* added in the RFC3493 API */
hints.ai_flags = AI_ADDRCONFIG;
- hints.ai_family = AF_UNSPEC;
+ hints.ai_family = AF_INET; //AF_UNSPEC;
addr->errnum = getaddrinfo(hostname, NULL, &hints, &addr->result);
#else
hints.ai_family = ipv6_disabled ? AF_INET : AF_UNSPEC;
addr->errnum = getaddrinfo(hostname, NULL, &hints, &addr->result);
--
You are receiving this mail because:
You are on the CC list for the bug.