diff options
author | Ken Raeburn <raeburn@mit.edu> | 2009-11-06 20:16:53 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2009-11-06 20:16:53 +0000 |
commit | 965c41375099ee25440ee09e9b4a2db56ca7d7e0 (patch) | |
tree | fb2acf21e055a2b204a50a44573e6cbe6d6c93fd | |
parent | 09d926126e61517bb28809d79281e9c76bbced21 (diff) | |
download | krb5-965c41375099ee25440ee09e9b4a2db56ca7d7e0.zip krb5-965c41375099ee25440ee09e9b4a2db56ca7d7e0.tar.gz krb5-965c41375099ee25440ee09e9b4a2db56ca7d7e0.tar.bz2 |
Use krb5_get_error_message for reporting if krb5_get_server_rcache fails
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23137 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/tests/threads/t_rcache.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/threads/t_rcache.c b/src/tests/threads/t_rcache.c index eb94b2e..e3416f2 100644 --- a/src/tests/threads/t_rcache.c +++ b/src/tests/threads/t_rcache.c @@ -78,7 +78,9 @@ static void try_one (struct tinfo *t) #ifndef INIT_ONCE err = krb5_get_server_rcache(ctx, &piece, &my_rcache); if (err) { - com_err(prog, err, "getting replay cache"); + const char *msg = krb5_get_error_message(ctx, err); + fprintf(stderr, "%s while initializing replay cache\n", msg); + krb5_free_error_message(ctx, msg); exit(1); } #else @@ -134,7 +136,9 @@ int main (int argc, char *argv[]) #ifdef INIT_ONCE err = krb5_get_server_rcache(ctx, &piece, &rcache); if (err) { - com_err(prog, err, "getting replay cache"); + const char *msg = krb5_get_error_message(ctx, err); + fprintf(stderr, "%s: %s while initializing replay cache\n", prog, msg); + krb5_free_error_message(ctx, msg); return 1; } #endif |