(init_auth): use right variable to detect if we want to free or not.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22671 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-03-09 23:57:54 +00:00
parent acd0b08bcf
commit 2d405842ad

View File

@@ -558,7 +558,7 @@ init_auth
return gsskrb5_initiator_ready(minor_status, ctx, context);
failure:
if(cred)
if(kcred)
krb5_free_creds(context, kcred);
if (ccache && cred == NULL)
krb5_cc_close(context, ccache);