git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22860 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-04-07 18:49:44 +00:00
parent 319fa07a42
commit 6752ef7fbd

View File

@@ -522,7 +522,7 @@ change_password_loop (krb5_context context,
krb5_krbhst_handle handle = NULL; krb5_krbhst_handle handle = NULL;
krb5_krbhst_info *hi; krb5_krbhst_info *hi;
int sock; int sock;
int i; unsigned int i;
int done = 0; int done = 0;
krb5_realm realm; krb5_realm realm;
@@ -647,17 +647,14 @@ change_password_loop (krb5_context context,
out: out:
krb5_krbhst_free (context, handle); krb5_krbhst_free (context, handle);
krb5_auth_con_free (context, auth_context); krb5_auth_con_free (context, auth_context);
if (done)
return 0; if (ret == KRB5_KDC_UNREACH) {
else { krb5_set_error_string(context,
if (ret == KRB5_KDC_UNREACH) { "unable to reach any changepw server "
krb5_set_error_string(context, " in realm %s", realm);
"unable to reach any changepw server " *result_code = KRB5_KPASSWD_HARDERROR;
" in realm %s", realm);
*result_code = KRB5_KPASSWD_HARDERROR;
}
return ret;
} }
return ret;
} }