From 1c992f6e8f3bc527d00c6745bfe47a4dede8bf46 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 14 Sep 2009 21:12:20 +0200 Subject: fix the wrong usage of an offset --- server/providers/krb5/krb5_child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/providers/krb5') 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); -- cgit