On Sat, May 13, 2017 at 08:44:15PM +0200, Michael Stapelberg wrote:
> Sorry for the late reply.
> 
> Adam, could you run the attached example program (derived from the
> getaddrinfo and getnameinfo manpages) please? The output should help us
> narrow down whether the problem is with the application code of sslh or
> something in the environment.
> 
> Use: gcc -Wall -o gai gai.c && ./gai localhost 9002

On all three machines, it looks fine:
.----
printing getaddrinfo(localhost, 9002) results:

  ai_family = 10
  ai_socktype = 2
  ai_protocol = 17
  rp->ai_addrlen = 28
    host=::1, serv=9002

  ai_family = 2
  ai_socktype = 2
  ai_protocol = 17
  rp->ai_addrlen = 16
    host=127.0.0.1, serv=9002

done
`----

Inside the chroot:
.----
[/srv/sbuild/stretch-armhf/tmp]# cp -p /tmp/gai .
[/srv/sbuild/stretch-armhf/tmp]# chroot ..
(stretch-armhf-sbuild)root@kholdan:/# tmp/gai localhost 9002
printing getaddrinfo(localhost, 9002) results:

  ai_family = 2
  ai_socktype = 2
  ai_protocol = 17
  rp->ai_addrlen = 16
    host=127.0.0.1, serv=9002

  ai_family = 2
  ai_socktype = 2
  ai_protocol = 17
  rp->ai_addrlen = 16
    host=127.0.0.1, serv=9002

done
`----


Meow!
-- 
Don't be racist.  White, amber or black, all beers should be judged based
solely on their merits.  Heck, even if occasionally a cider applies for a
beer's job, why not?
On the other hand, corpo lager is not a race.

Reply via email to