From 69350842f4846ed7b383ef6734d134fd32de8925 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 23 Jan 2009 17:53:52 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/get_in_tkt.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.26.2