59b8f4ff840aaaf1f06c348d26da64cc75f87eac

On any OS with a properly implemented getaddrinfo() this change is a no-op. Passing NULL for the hint is supposed to be the same as an addrinfo structure with all fields set to 0. There is no need to set ai_family to AF_UNSPEC because that value is already 0. GNU libc doesn't follow standard behaviour. Quoting from http://man7.org/linux/man-pages/man3/getaddrinfo.3.html : "Specifying hints as NULL is equivalent to setting ai_socktype and ai_protocol to 0; ai_family to AF_UNSPEC; and ai_flags to (AI_V4MAPPED | AI_ADDRCONFIG). (POSIX specifies different defaults for ai_flags; see NOTES.)" The NOTES section says: "According to POSIX.1-2001, specifying hints as NULL should cause ai_flags to be assumed as 0. The GNU C library instead assumes a value of (AI_V4MAPPED | AI_ADDRCONFIG) for this case, since this value is considered an improvement on the specification." The patch makes sure that krb5_parse_address works consistently on both GNU libc and systems that follow POSIX.1-2001 to the letter. Some incorrect Fedora 17 patches managed to break IPv6 connectivity and were later backed out (see discussion at https://bugzilla.redhat.com/808147). This patch resolves the incompatibility. Signed-off-by: Ken Dreyer <ktdreyer@ktdreyer.com>
Heimdal is a Kerberos 5 implementation. For information how to install see <http://www.h5l.org/compile.html>. There are briefer man pages for most of the commands. Bug reports and bugs are appreciated, see more under Bug reports in the manual on how we prefer them: <heimdal-bugs@h5l.org>. For more information see the web-page at <http://www.h5l.org/> or the mailing lists: heimdal-announce@sics.se low-volume announcement heimdal-discuss@sics.se high-volume discussion send a mail to heimdal-announce-request@sics.se and heimdal-discuss-request@sics.se respectively to subscribe.
Description
Languages
C
92.1%
Roff
2.8%
Shell
2.3%
Makefile
0.7%
M4
0.5%
Other
1.4%