From: Greg Hudson Date: Tue, 5 May 2009 16:46:29 +0000 (+0000) Subject: In krb5int_rd_setpw_rep, if we get an error result, set ap_rep.length X-Git-Tag: krb5-1.8-alpha1~494 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11aa9465a6ed940a382ee436047060624c824cb1;p=krb5.git 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 --- 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*/