From: Ken Raeburn Date: Wed, 4 Jun 2003 02:40:26 +0000 (+0000) Subject: * changepw.c (krb5_locate_kpasswd): Check specifically for certain errors X-Git-Tag: krb5-1.4-beta1~881 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af9ae70b29e02d71872f2a2b6753508884819e9f;p=krb5.git * changepw.c (krb5_locate_kpasswd): Check specifically for certain errors before using fallback heuristics. ticket: 1549 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15557 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index f95b55f13..2b601c460 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,5 +1,8 @@ 2003-06-03 Ken Raeburn + * changepw.c (krb5_locate_kpasswd): Check specifically for certain + errors before using fallback heuristics. + * locate_kdc.c (get_port): Replace function with macro. 2003-06-03 Alexandra Ellwood diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index f8ec224db..780f0c058 100644 --- a/src/lib/krb5/os/changepw.c +++ b/src/lib/krb5/os/changepw.c @@ -54,7 +54,7 @@ krb5_locate_kpasswd(krb5_context context, const krb5_data *realm, code = krb5int_locate_server (context, realm, addrlist, 0, "kpasswd_server", "_kpasswd", 0, DEFAULT_KPASSWD_PORT, 0, 0); - if (code) { + if (code == KRB5_REALM_CANT_RESOLVE || code == KRB5_REALM_UNKNOWN) { code = krb5int_locate_server (context, realm, addrlist, 0, "admin_server", "_kerberos-adm", 1, DEFAULT_KPASSWD_PORT, 0, 0);