projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f16f8a0
)
better version of last change
author
Ken Raeburn
<raeburn@mit.edu>
Wed, 17 Oct 2001 22:35:04 +0000
(22:35 +0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Wed, 17 Oct 2001 22:35:04 +0000
(22:35 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13817
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/os/locate_kdc.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/locate_kdc.c
b/src/lib/krb5/os/locate_kdc.c
index 0d619d2ff29bbbef243289e870224f2dd1bfd476..e708459d312ad67697f59fb542feb04c07b1a9b0 100644
(file)
--- a/
src/lib/krb5/os/locate_kdc.c
+++ b/
src/lib/krb5/os/locate_kdc.c
@@
-284,19
+284,7
@@
add_host_to_list (struct addrlist *lp, const char *hostname,
a->ai_addr->sa_family = a->ai_family;
#ifdef HAVE_SA_LEN
if (a->ai_addr->sa_len == 0)
- switch (a->ai_addr->sa_family) {
- case AF_INET:
- a->ai_addr->sa_len = sizeof (struct sockaddr_in);
- break;
-#ifdef KRB5_USE_INET6
- case AF_INET6:
- a->ai_addr->sa_len = sizeof (struct sockaddr_in6);
- break;
-#endif
- default:
- /* oh well, we lose */
- break;
- }
+ a->ai_addr->sa_len = a->ai_addrlen;
#endif
set_port_num (a->ai_addr, port);