(krb5_get_in_tkt): for compatibility with with the mit implemtation,
don't free `creds' argument when done, its up the the caller to do that, also allow a NULL ccache. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12561 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -820,7 +820,7 @@ krb5_get_in_tkt(krb5_context context,
|
|||||||
ret_as_reply);
|
ret_as_reply);
|
||||||
if(ret)
|
if(ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
if (ccache)
|
||||||
ret = krb5_cc_store_cred (context, ccache, creds);
|
ret = krb5_cc_store_cred (context, ccache, creds);
|
||||||
krb5_free_creds_contents (context, creds);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user