svn rev #23137: trunk/src/tests/threads/
raeburn@MIT.EDU
raeburn at MIT.EDU
Fri Nov 6 15:16:53 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23137
Commit By: raeburn
Log Message:
Use krb5_get_error_message for reporting if krb5_get_server_rcache fails.
Changed Files:
U trunk/src/tests/threads/t_rcache.c
Modified: trunk/src/tests/threads/t_rcache.c
===================================================================
--- trunk/src/tests/threads/t_rcache.c 2009-11-06 19:45:29 UTC (rev 23136)
+++ trunk/src/tests/threads/t_rcache.c 2009-11-06 20:16:53 UTC (rev 23137)
@@ -78,7 +78,9 @@
#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 @@
#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
More information about the cvs-krb5
mailing list