]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Save the full residual for keyring caches
authorSimo Sorce <simo@redhat.com>
Wed, 7 Aug 2013 21:47:16 +0000 (17:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 15 Aug 2013 19:55:32 +0000 (15:55 -0400)
krb5_cc_get_name() should allow the caller to reconstruct the full
cache name.  That is not possible if thread: and process: are omitted
here.  (The saved name is not used by anything except
krb5_krcc_get_name, so this change is safe.)

[ghudson@mit.edu: proofread and clarified commit message]

ticket: 7692 (new)

src/lib/krb5/ccache/cc_keyring.c

index 8b376e6fd078ade8e7e5763a716274c100dffda4..059e9ee51f3729c8204189ed04bcefd4e199d462 100644 (file)
@@ -599,7 +599,7 @@ krb5_krcc_resolve(krb5_context context, krb5_ccache * id, const char *full_resid
         return KRB5_CC_NOMEM;
 
 
-    kret = krb5_krcc_new_data(residual, key, ring_id, &d);
+    kret = krb5_krcc_new_data(full_residual, key, ring_id, &d);
     if (kret) {
         free(lid);
         return kret;