(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:
@@ -837,10 +837,6 @@ krb5_get_credentials_with_flags(krb5_context context,
|
|||||||
if (in_creds->session.keytype)
|
if (in_creds->session.keytype)
|
||||||
options |= KRB5_TC_MATCH_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
|
* If we got a credential, check if credential is expired before
|
||||||
* returning it.
|
* returning it.
|
||||||
|
Reference in New Issue
Block a user