Ignore port when pulling IP addr from struct sockaddr_storage.
commit9b6ce520b9e81fbb2851388e27a7ec2ad67edba6
authorGerald (Jerry) Carter <jerry@samba.org>
Mon, 24 Mar 2008 19:48:29 +0000 (24 14:48 -0500)
committerKarolin Seeger <kseeger@samba.org>
Wed, 26 Mar 2008 12:26:52 +0000 (26 13:26 +0100)
tree840e972b9275adc2e08eea01d2416774ece206b7
parentf717fdfe957999733a3107331f1aa1a94464b2bb
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.
(cherry picked from commit 36f8bafbd3dee66a869aa26cfc2eb4aa62019325)
source/lib/util_sock.c