diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-05-29 13:15:58 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-26 19:27:34 +0200 |
commit | d413dd5d7d4affeae9fe4dfd2de4b2296ecaffcc (patch) | |
tree | bccbd108e95157e7c254224d63cadb63ab4100fe /src/util | |
parent | a6f0c94f544705e4377b7ce62a867534fe7dcd9e (diff) | |
download | sssd-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.c | 5 |
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; |