Ignore port when pulling IP addr from struct sockaddr_storage.
authorGerald (Jerry) Carter <jerry@samba.org>
Mon, 24 Mar 2008 19:48:29 +0000 (14:48 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Mon, 24 Mar 2008 22:25:13 +0000 (17:25 -0500)
commit22d7cd6605b156ca74011b4c05ed47018e7dce7a
treedf68cb47cc939ad9fb2c4d790d949fa1ecf385f8
parenteeeb4aa931111b9091eaf3af8c7e709155a23ccf
Ignore port when pulling IP addr from struct sockaddr_storage.

Linux man page states that getaddinfo() will leave the port
uninitialized when passing in NULL for the service name.  So we
can't really trust that anymore.  I doubt non-default KDC ports
are an issues so just drop the port from the generated krb5.conf.
AIX exhibits this bug the most.
(This used to be commit 36f8bafbd3dee66a869aa26cfc2eb4aa62019325)
source3/lib/util_sock.c