zero, copy it in from the addrinfo structure. Bug workaround for AIX 4.3.3.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13767
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-09-29 Ken Raeburn <raeburn@mit.edu>
+
+ * locate_kdc.c (add_host_to_list): If address family in sockaddr
+ structure is zero, copy it in from the addrinfo structure. Bug
+ workaround for AIX 4.3.3.
+
2001-09-28 Ken Raeburn <raeburn@mit.edu>
* localaddr.c: Retrieve IPv6 addresses on Solaris 8.
if (err)
return translate_ai_error (err);
for (a = addrs; a; a = a->ai_next) {
+ /* AIX 4.3.3 is broken. */
+ if (a->ai_addr->sa_family == 0)
+ a->ai_addr->sa_family = a->ai_family;
+
set_port_num (a->ai_addr, port);
err = add_addrinfo_to_list (lp, a);
if (err)