summaryrefslogtreecommitdiff
path: root/server/providers/krb5
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-09-14 21:12:20 +0200
committerSimo Sorce <ssorce@redhat.com>2009-09-14 16:09:55 -0400
commit1c992f6e8f3bc527d00c6745bfe47a4dede8bf46 (patch)
treebc332ee6916819d6032c1a74f8ef45392e32171d /server/providers/krb5
parent945e1f1fab935616bde0d1d64d9e16225b44c183 (diff)
downloadsssd-1c992f6e8f3bc527d00c6745bfe47a4dede8bf46.tar.gz
sssd-1c992f6e8f3bc527d00c6745bfe47a4dede8bf46.tar.bz2
sssd-1c992f6e8f3bc527d00c6745bfe47a4dede8bf46.zip
fix the wrong usage of an offset
Diffstat (limited to 'server/providers/krb5')
-rw-r--r--server/providers/krb5/krb5_child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/providers/krb5/krb5_child.c b/server/providers/krb5/krb5_child.c
index 578e8227..3673c745 100644
--- a/server/providers/krb5/krb5_child.c
+++ b/server/providers/krb5/krb5_child.c
@@ -177,7 +177,7 @@ static krb5_error_code get_and_save_tgt(struct krb5_req *kr,
if (kr->ccname[0] == 'F') {
offset = 5;
}
- ccname_len = strlen(kr->ccname + offset);
+ ccname_len = strlen(kr->ccname);
if (ccname_len >= 6 &&
strcmp(kr->ccname + (ccname_len-6), "XXXXXX")==0 ) {
fd = mkstemp(kr->ccname + offset);