Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 10 Jul 2018 19:30:05 -0400
From: Christopher Friedt <>
Subject: Re: getaddrinfo(3) / AI_ADDRCONFIG

On Tue, Jul 10, 2018 at 7:21 PM Christopher Friedt
<> wrote:
> test.c, output, strace log, and ifconfig -a output here:

So it's definitely returning an IPv4 socket (which Thrift throws away
in favour of the IPv6 socket). Since no adapter has the IPv6 address
returned,  bind(2) would fail on a subsequent call.

After applying the patch [1] to musl,

# ./test -v
struct addrinfo {
   ai_flags:        0
   ai_family:       2
   ai_socktype:     1
   ai_protocol:     6
   ai_addrlen:      16
      family:       2
      port:         0
   ai_canonname:    localhost
   ai_next:         0


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.