From: Greg Hudson Date: Fri, 23 Jan 2009 17:53:52 +0000 (+0000) Subject: In krb5_get_init_creds, null out err_reply in a case where we free it X-Git-Tag: krb5-1.7-alpha1~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=69350842f4846ed7b383ef6734d134fd32de8925;p=krb5.git In krb5_get_init_creds, null out err_reply in a case where we free it and do not necessarily exit the loop. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21785 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index f30ae2122..8a8a9b3c0 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -1341,6 +1341,7 @@ krb5_get_init_creds(krb5_context context, &err_reply->client->realm, &referred_client.realm); krb5_free_error(context, err_reply); + err_reply = NULL; if (ret) goto cleanup; request.client = &referred_client;