[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux + IPv6 + KDC ?
Tomas Lund <tlund@nxs.se> writes:
> ...some kind of byteorder problem somewhere?
Try the following patch.
/assar
Index: addr_families.c
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/heimdal/lib/krb5/addr_families.c,v
retrieving revision 1.22
diff -u -w -u -w -r1.22 addr_families.c
--- addr_families.c 1999/12/04 17:53:33 1.22
+++ addr_families.c 2000/02/16 02:05:34
@@ -532,12 +532,7 @@
ALLOC_SEQ(addresses, n);
for (a = ai, i = 0; a != NULL; a = a->ai_next, ++i) {
- struct addr_operations *aop = find_af (ai->ai_family);
-
- addresses->val[i].addr_type = aop->atype;
- krb5_data_copy (&addresses->val[i].address,
- ai->ai_addr,
- ai->ai_addrlen);
+ krb5_sockaddr2address (ai->ai_addr, &addresses->val[i]);
}
freeaddrinfo (ai);
return 0;