diff options
-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 74db98fe..9adb8ff2 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; |