lib/krb5_wrap: make use of smb_krb5_cc_new_unique_memory() in smb_krb5_kinit_s4u2_cca...
authorStefan Metzmacher <metze@samba.org>
Tue, 27 Feb 2024 14:47:15 +0000 (15:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 May 2024 11:30:33 +0000 (11:30 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/krb5_wrap/krb5_samba.c

index 0df4d04208148d483231460acda0f4f86fbc9659..fbf4cb483e0e9d3ce87d33de7bda77b184c04d60 100644 (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;
        }