From ba89d20ec8c2f8a414f3162f1a46ceb30c7f70ff Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 5 Mar 2003 00:47:51 +0000 Subject: [PATCH] Fix rcache character test introduced in last commit Ticket: 1370 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15222 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/srv_rcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index 290f869e5..c68bf87e9 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -32,7 +32,7 @@ #include /* Macro for valid RC name characters*/ -#define isinvalidrcname(x) (isgraph(x)||ispunct(x)) +#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) { @@ -60,7 +60,7 @@ krb5_get_server_rcache(krb5_context context, const krb5_data *piece, krb5_rcache for (i = 0; i < piece->length; i++) { if (piece->data[i] == '\\') len++; - else if (!isinvalidrcname((int) piece->data[i])) + else if (!isvalidrcname((int) piece->data[i])) len += 3; } -- 2.26.2