[krbdev.mit.edu #7124] SVN Commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Thu May 3 11:15:54 EDT 2012


In sn2princ, getaddrinfo without AI_ADDRCONFIG

When canonicalizing a principal, use AI_CANONNAME alone in the hint
flags for getaddrinfo, for two reasons.  First, it works around a gnu
libc bug where getaddrinfo does a PTR lookup for the canonical name
(we tried to work around this in r24977 bug the addition of
AI_ADDRCONFIG caused the same problem as the use of AF_INET).  Second,
an IPv4-only host should be able create a principal for an IPv6-only
host even if it can't contact the host.

This does result in extra AAAA queries in the common case (IPv4-only
host contacting IPv4-only service), which is unfortunate.  But we need
to leave that optimization up to the platform at this point.

http://src.mit.edu/fisheye/changelog/krb5/?cs=25844
Commit By: ghudson
Revision: 25844
Changed Files:
U   trunk/src/lib/krb5/os/sn2princ.c



More information about the krb5-bugs mailing list