diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-05-29 09:57:38 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-26 19:28:34 +0200 |
commit | fa3cdcff460d555f4a4905fb0a2d96be564fc599 (patch) | |
tree | 6651bdfbc27b50f529dba59b773ae0226c9a9650 /src/providers/krb5/krb5_utils.c | |
parent | d413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc (diff) | |
download | sssd-fa3cdcff460d555f4a4905fb0a2d96be564fc599.tar.gz sssd-fa3cdcff460d555f4a4905fb0a2d96be564fc599.tar.xz 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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index 1883d785e..3f16faa7f 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 |