1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +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:
Stefan Metzmacher 2024-02-27 15:47:15 +01:00
parent 48bcc218c9
commit 21b96f010a

View File

@ -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
* 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) {
krb5_free_cred_contents(ctx, &store_creds);
return code;
@ -2896,7 +2896,7 @@ krb5_error_code smb_krb5_kinit_s4u2_ccache(krb5_context ctx,
bool s4u2proxy = false;
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) {
return code;
}