In krb5_get_init_creds, null out err_reply in a case where we free it
authorGreg Hudson <ghudson@mit.edu>
Fri, 23 Jan 2009 17:53:52 +0000 (17:53 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 23 Jan 2009 17:53:52 +0000 (17:53 +0000)
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

index f30ae212271c4f142dd83f4da3902a95dca79b94..8a8a9b3c04eb8788e9c8adab9fbdc654697884e5 100644 (file)
@@ -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;