From 4eb0c31894500ab222e13ab8c7f69c19181845aa Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 29 Sep 1994 21:04:42 +0000 Subject: [PATCH] cache name was not being properly null-terminated git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4385 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 3 +++ src/lib/krb5/krb/srv_rcache.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 023a2a019..c9a2ce097 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,8 @@ Thu Sep 29 15:31:10 1994 Theodore Y. Ts'o (tytso@dcl) + * srv_rcache.c (krb5_get_server_rcache): cachename was not being + properly null-terminated. + * get_in_tkt.c (krb5_get_in_tkt): Return KRB5_IN_TKT_REALM_MISATCH if the client and server realms don't match. Return KRB5_KDCREP_SKEW if the KDC reply has an unacceptible diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index 86e2a2b3b..f6206df22 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -78,6 +78,7 @@ krb5_rcache *rcptr; } cachename[p++] = piece->data[i]; } + cachename[p++] = '\0'; if (retval = krb5_rc_resolve(rcache, cachename)) goto cleanup; -- 2.26.2