[SSSD] [PATCH] fix the wrong usage of an offset

Sumit Bose sbose at redhat.com
Mon Sep 14 19:26:07 UTC 2009


Hi,

I hadn't checked a last minute change properly with the result that the
detection if mkstemp should be used or not is broken. This patch should
fix this.

bye,
Sumit
-------------- next part --------------
>From f40ae51b976c2022c07319235f2c1b31ead89636 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Mon, 14 Sep 2009 21:12:20 +0200
Subject: [PATCH] fix the wrong usage of an offset

---
 server/providers/krb5/krb5_child.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/providers/krb5/krb5_child.c b/server/providers/krb5/krb5_child.c
index 578e822..3673c74 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);
-- 
1.6.2.5



More information about the sssd-devel mailing list