summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/krb5/krb/chpw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/chpw.c b/src/lib/krb5/krb/chpw.c
index 13adbd6ae..1a4013dd7 100644
--- a/src/lib/krb5/krb/chpw.c
+++ b/src/lib/krb5/krb/chpw.c
@@ -370,6 +370,7 @@ krb5int_rd_setpw_rep(krb5_context context, krb5_auth_context auth_context,
krberror->e_data.data = NULL; /*So we can free it later*/
krberror->e_data.length = 0;
krb5_free_error(context, krberror);
+ ap_rep.length = 0;
} else { /* Not an error*/