mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib/krb5_wrap: make use of smb_krb5_cc_new_unique_memory() in smb_krb5_kinit_s4u2_ccache()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
48bcc218c9
commit
21b96f010a
@ -2502,7 +2502,7 @@ krb5_error_code smb_krb5_kinit_s4u2_ccache(krb5_context ctx,
|
|||||||
* We need to avoid that and use a temporary krb5_ccache
|
* We need to avoid that and use a temporary krb5_ccache
|
||||||
* in order to pass our TGT to the krb5_get_creds() function.
|
* in order to pass our TGT to the krb5_get_creds() function.
|
||||||
*/
|
*/
|
||||||
code = krb5_cc_new_unique(ctx, NULL, NULL, &tmp_cc);
|
code = smb_krb5_cc_new_unique_memory(ctx, NULL, NULL, &tmp_cc);
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
krb5_free_cred_contents(ctx, &store_creds);
|
krb5_free_cred_contents(ctx, &store_creds);
|
||||||
return code;
|
return code;
|
||||||
@ -2896,7 +2896,7 @@ krb5_error_code smb_krb5_kinit_s4u2_ccache(krb5_context ctx,
|
|||||||
bool s4u2proxy = false;
|
bool s4u2proxy = false;
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|
||||||
code = krb5_cc_new_unique(ctx, "MEMORY", NULL, &tmp_cc);
|
code = smb_krb5_cc_new_unique_memory(ctx, NULL, NULL, &tmp_cc);
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user