From 11aa9465a6ed940a382ee436047060624c824cb1 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 5 May 2009 16:46:29 +0000 Subject: [PATCH] In krb5int_rd_setpw_rep, if we get an error result, set ap_rep.length to 0 so that it is initialized for a check later in the function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22313 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/chpw.c | 1 + 1 file changed, 1 insertion(+) 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*/ -- 2.26.2