(krb5_get_credentials_with_flags): only call krb5_cc_retrieve_cred

once, and plug memory leak.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15639 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-13 07:38:02 +00:00
parent b8703f6d40
commit 0f1c19edb9

View File

@@ -837,10 +837,6 @@ krb5_get_credentials_with_flags(krb5_context context,
if (in_creds->session.keytype)
options |= KRB5_TC_MATCH_KEYTYPE;
ret = krb5_cc_retrieve_cred(context,
ccache,
options,
in_creds, res_creds);
/*
* If we got a credential, check if credential is expired before
* returning it.