summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_child.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 1321f0c1..699bcb34 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1099,9 +1099,9 @@ static errno_t changepw_child(struct krb5_req *kr, bool prelim)
memset(&result_code_string, 0, sizeof(krb5_data));
memset(&result_string, 0, sizeof(krb5_data));
- kerr = krb5_change_password(kr->ctx, kr->creds,
- discard_const(newpassword), &result_code,
- &result_code_string, &result_string);
+ kerr = krb5_set_password(kr->ctx, kr->creds,
+ discard_const(newpassword), NULL,
+ &result_code, &result_code_string, &result_string);
if (kerr == KRB5_KDC_UNREACH) {
return ERR_NETWORK_IO;