From: Stefan Metzmacher Date: Tue, 27 Feb 2024 14:47:15 +0000 (+0100) Subject: lib/krb5_wrap: make use of smb_krb5_cc_new_unique_memory() in smb_krb5_kinit_s4u2_cca... X-Git-Tag: tdb-1.4.11~843 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21b96f010a4f9472a03aca5f4c1ed5a658530f52;p=thirdparty%2Fsamba.git lib/krb5_wrap: make use of smb_krb5_cc_new_unique_memory() in smb_krb5_kinit_s4u2_ccache() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 0df4d042081..fbf4cb483e0 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -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; }