summaryrefslogtreecommitdiff
path: root/source4/auth/credentials
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r--source4/auth/credentials/credentials_krb5.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/auth/credentials/credentials_krb5.c b/source4/auth/credentials/credentials_krb5.c
index 2b5a5fe7f1..01e405ad65 100644
--- a/source4/auth/credentials/credentials_krb5.c
+++ b/source4/auth/credentials/credentials_krb5.c
@@ -199,22 +199,14 @@ int cli_credentials_set_ccache(struct cli_credentials *cred,
static int cli_credentials_new_ccache(struct cli_credentials *cred, struct ccache_container **_ccc)
{
krb5_error_code ret;
- char *rand_string;
struct ccache_container *ccc = talloc(cred, struct ccache_container);
char *ccache_name;
if (!ccc) {
return ENOMEM;
}
- rand_string = generate_random_str(NULL, 16);
- if (!rand_string) {
- talloc_free(ccc);
- return ENOMEM;
- }
-
- ccache_name = talloc_asprintf(ccc, "MEMORY:%s",
- rand_string);
- talloc_free(rand_string);
+ ccache_name = talloc_asprintf(ccc, "MEMORY:%p",
+ ccc);
if (!ccache_name) {
talloc_free(ccc);