summaryrefslogtreecommitdiff
path: root/src/providers/krb5/krb5_utils.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-05-29 09:57:38 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-26 19:28:34 +0200
commitfa3cdcff460d555f4a4905fb0a2d96be564fc599 (patch)
tree6651bdfbc27b50f529dba59b773ae0226c9a9650 /src/providers/krb5/krb5_utils.c
parentd413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc (diff)
downloadsssd-fa3cdcff460d555f4a4905fb0a2d96be564fc599.tar.gz
sssd-fa3cdcff460d555f4a4905fb0a2d96be564fc599.tar.bz2
sssd-fa3cdcff460d555f4a4905fb0a2d96be564fc599.zip
Every time return directory for krb5 cache collection.
Function krb5_cc_get_full_name is called only as a way to validate that, we have the right cache. Instead of returned name, location will be returned from function cc_dir_cache_for_princ. https://fedorahosted.org/sssd/ticket/1936
Diffstat (limited to 'src/providers/krb5/krb5_utils.c')
-rw-r--r--src/providers/krb5/krb5_utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index 1883d785..3f16faa7 100644
--- a/src/providers/krb5/krb5_utils.c
+++ b/src/providers/krb5/krb5_utils.c
@@ -1164,6 +1164,9 @@ cc_dir_cache_for_princ(TALLOC_CTX *mem_ctx, const char *location,
return NULL;
}
+ /* This function is called only as a way to validate that,
+ * we have the right cache
+ */
krberr = krb5_cc_get_full_name(context, ccache, &name);
if (ccache) krb5_cc_close(context, ccache);
krb5_free_context(context);
@@ -1173,7 +1176,7 @@ cc_dir_cache_for_princ(TALLOC_CTX *mem_ctx, const char *location,
return NULL;
}
- return talloc_strdup(mem_ctx, name);
+ return talloc_strdup(mem_ctx, location);
}
errno_t