[27491] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit [krb5-1.10]: Make verify_init_creds work with existing

daemon@ATHENA.MIT.EDU (Tom Yu)
Fri Jan 11 14:50:39 2013

Date: Fri, 11 Jan 2013 14:50:30 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201301111950.r0BJoUit032510@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/07e6d05d51aa5e08e36faaa8d8ace00f2b875683
commit 07e6d05d51aa5e08e36faaa8d8ace00f2b875683
Author: Greg Hudson <ghudson@mit.edu>
Date:   Thu May 3 21:43:42 2012 +0000

    Make verify_init_creds work with existing ccache
    
    As the file ccache implementation currently stands, we don't want to
    turn off TC_OPENCLOSE on a file cache we're writing to, or it will be
    opened read-only and stores to it will fail.  Reported by Russ
    Allbery.
    
    (cherry picked from commit 0ae663d35b7dcbf2c469ad0688a67f4d1c0e425e)
    
    ticket: 7538 (new)
    version_fixed: 1.10.4
    status: resolved

 src/lib/krb5/krb/vfy_increds.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/lib/krb5/krb/vfy_increds.c b/src/lib/krb5/krb/vfy_increds.c
index 207b309..292ccfb 100644
--- a/src/lib/krb5/krb/vfy_increds.c
+++ b/src/lib/krb5/krb/vfy_increds.c
@@ -32,8 +32,6 @@ copy_creds_except(krb5_context context, krb5_ccache incc,
     flags = 0;                           /* turns off OPENCLOSE mode */
     if ((code = krb5_cc_set_flags(context, incc, flags)))
         return(code);
-    if ((code = krb5_cc_set_flags(context, outcc, flags)))
-        return(code);
 
     if ((code = krb5_cc_start_seq_get(context, incc, &cur)))
         goto cleanup;
@@ -61,11 +59,6 @@ cleanup:
     else
         code = krb5_cc_set_flags(context, incc, flags);
 
-    if (code)
-        krb5_cc_set_flags(context, outcc, flags);
-    else
-        code = krb5_cc_set_flags(context, outcc, flags);
-
     return(code);
 }
 
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post