Try both v4 and v6 socket types
commit76afc31e9ba2f37e64c70adc006ade9e37e9ef73
authorAnton Lundin <glance@acc.umu.se>
Thu, 20 Aug 2009 14:49:26 +0000 (20 07:49 -0700)
committerLove Hornquist Astrand <lha@h5l.org>
Thu, 20 Aug 2009 14:51:56 +0000 (20 07:51 -0700)
tree424f9f4e16ab7edad0c7f44c1571a6d8d000fd52
parent86d22e328f5f5241f83a590f3c99cd318c83ce0c
Try both v4 and v6 socket types

The libroken-getifaddrs fails to retrive the ipv6-address in
solaris-zones but it might connect over ipv6 anyway, and then the kdc
refuses to give a ticket with the cryptic message:

kinit: krb5_get_init_creds: No ENC-TS found

A saner message ends up in the kdc's logfile.

because of a ENXIO when looking for a ipv6-address on the
ipv4-interface, the whole getlifaddrs2 fails and getifaddrs2 is run
instead and it just discovers the ipv4-address.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
lib/roken/getifaddrs.c