diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-06-04 21:37:18 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-06-04 21:37:18 +0000 |
commit | 8098a4418fab43cb5ec1ba07b103b4f5aea2c3df (patch) | |
tree | d9bffe0f885374e7d67ab56c9091f690df309548 /src | |
parent | ef0cef40abae03d70812cef6d4451c1fa9d782c7 (diff) | |
download | krb5-8098a4418fab43cb5ec1ba07b103b4f5aea2c3df.tar.gz krb5-8098a4418fab43cb5ec1ba07b103b4f5aea2c3df.tar.xz krb5-8098a4418fab43cb5ec1ba07b103b4f5aea2c3df.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb5/krb/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/krb5/krb/srv_rcache.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 83e4b1ddf0..811409b0b9 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2004-06-04 Ken Raeburn <raeburn@mit.edu> + + * 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 <raeburn@mit.edu> * 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 99e9655636..c78a235ba5 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++] = '-'; |