summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-05-29 13:15:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-26 19:27:34 +0200
commitd413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc (patch)
treebccbd108e95157e7c254224d63cadb63ab4100fe /src/util
parenta6f0c94f544705e4377b7ce62a867534fe7dcd9e (diff)
downloadsssd-d413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc.tar.gz
sssd-d413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc.tar.xz
sssd-d413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc.zip
Fix wrong detection of krb5 ccname
DIR:/run/user/1000/krb5cc is valid ccname, but function sss_krb5_cc_file_path returned NULL in this case.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_krb5.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index 74db98fe9..9adb8ff26 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -996,7 +996,10 @@ sss_krb5_cc_file_path(const char *full_location)
#ifdef HAVE_KRB5_DIRCACHE
case SSS_KRB5_TYPE_DIR:
/* DIR::/run/user/tkt_foo */
- if (residual[0] == ':') return residual+1;
+ if (residual[0] == ':') {
+ ++residual;
+ }
+ return residual;
#endif
case SSS_KRB5_TYPE_UNKNOWN:
break;