summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2008-11-05 17:47:00 +0000
committerKen Raeburn <raeburn@mit.edu>2008-11-05 17:47:00 +0000
commitbf9a02f12df890702d1ca17641fa43b816f60314 (patch)
tree8842e63806322a9fa2b4e18b58bfa3944bdab2a6 /src/lib
parentddf60ba5e894ad339c96c6f61446dfc8cb79e779 (diff)
downloadkrb5-bf9a02f12df890702d1ca17641fa43b816f60314.tar.gz
krb5-bf9a02f12df890702d1ca17641fa43b816f60314.tar.xz
krb5-bf9a02f12df890702d1ca17641fa43b816f60314.zip
Only look for IPv4 addresses for the kpasswd server. This is just a
workaround for other parts of the code failing to cope with IPv6 addresses, and won't work in an IPv6-only environment; the problem should still be fixed for real. ticket: 5595 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21004 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/os/changepw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c
index 5bd5b86781..7811387385 100644
--- a/src/lib/krb5/os/changepw.c
+++ b/src/lib/krb5/os/changepw.c
@@ -64,11 +64,12 @@ krb5_locate_kpasswd(krb5_context context, const krb5_data *realm,
int sockType = (useTcp ? SOCK_STREAM : SOCK_DGRAM);
code = krb5int_locate_server (context, realm, addrlist,
- locate_service_kpasswd, sockType, 0);
+ locate_service_kpasswd, sockType, AF_INET);
if (code == KRB5_REALM_CANT_RESOLVE || code == KRB5_REALM_UNKNOWN) {
code = krb5int_locate_server (context, realm, addrlist,
- locate_service_kadmin, SOCK_STREAM, 0);
+ locate_service_kadmin, SOCK_STREAM,
+ AF_INET);
if (!code) {
/* Success with admin_server but now we need to change the
port number to use DEFAULT_KPASSWD_PORT and the socktype. */