(change_password_loop): on failing to find a kdc, set result_code to

KRB5_KPASSWD_HARDERROR


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14440 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-01-04 09:39:45 +00:00
parent 0de7258981
commit 223f4ceb07

View File

@@ -643,10 +643,12 @@ change_password_loop (krb5_context context,
if (done)
return 0;
else {
if (ret == KRB5_KDC_UNREACH)
if (ret == KRB5_KDC_UNREACH) {
krb5_set_error_string(context,
"unable to reach any changepw server "
" in realm %s", realm);
*result_code = KRB5_KPASSWD_HARDERROR;
}
return ret;
}
}