From 8098a4418fab43cb5ec1ba07b103b4f5aea2c3df Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 4 Jun 2004 21:37:18 +0000 Subject: [PATCH] Oops * srv_rcache.c (krb5_get_server_rcache): Don't forget to actually include the cache type in the cache name, after looking it up. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16410 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/srv_rcache.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 83e4b1ddf..811409b0b 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2004-06-04 Ken Raeburn + + * srv_rcache.c (krb5_get_server_rcache): Don't forget to actually + include the cache type in the cache name, after looking it up. + 2004-06-02 Ken Raeburn * init_ctx.c (init_common): Don't call krb5_init_ets. diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index 99e965563..c78a235ba 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -34,7 +34,8 @@ /* Macro for valid RC name characters*/ #define isvalidrcname(x) ((!ispunct(x))&&isgraph(x)) krb5_error_code KRB5_CALLCONV -krb5_get_server_rcache(krb5_context context, const krb5_data *piece, krb5_rcache *rcptr) +krb5_get_server_rcache(krb5_context context, const krb5_data *piece, + krb5_rcache *rcptr) { krb5_rcache rcache = 0; char *cachename = 0, *cachetype; @@ -72,8 +73,10 @@ krb5_get_server_rcache(krb5_context context, const krb5_data *piece, krb5_rcache retval = ENOMEM; goto cleanup; } + strcpy(cachename, cachetype); p = strlen(cachename); + cachename[p++] = ':'; for (i = 0; i < piece->length; i++) { if (piece->data[i] == '-') { cachename[p++] = '-'; -- 2.26.2