From: Simo Sorce Date: Wed, 7 Aug 2013 21:47:16 +0000 (-0400) Subject: Save the full residual for keyring caches X-Git-Tag: krb5-1.12-alpha1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=559b84214cfefb9accc320a13590684ce1cd0592;p=thirdparty%2Fkrb5.git Save the full residual for keyring caches 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) --- diff --git a/src/lib/krb5/ccache/cc_keyring.c b/src/lib/krb5/ccache/cc_keyring.c index 8b376e6fd0..059e9ee51f 100644 --- a/src/lib/krb5/ccache/cc_keyring.c +++ b/src/lib/krb5/ccache/cc_keyring.c @@ -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;