message if necessary.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9316
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Nov 6 12:02:20 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * kdestroy.c (main): Check the error return from
+ krb5_init_context(), and print an error message if
+ necessary.
+
Tue Sep 10 14:13:33 1996 Tom Yu <tlyu@mit.edu>
* kdestroy.M: remove ".so man1/header.doc"
char **argv;
{
krb5_context kcontext;
+ krb5_error_code retval;
int c;
krb5_ccache cache = NULL;
char *cache_name = NULL;
int errflg=0;
int quiet = 0;
- krb5_init_context(&kcontext);
- krb5_init_ets(kcontext);
+ retval = krb5_init_context(&kcontext);
+ if (retval) {
+ com_err(argv[0], status, "while initializing krb5");
+ exit(1);
+ }
if (strrchr(argv[0], '/'))
argv[0] = strrchr(argv[0], '/')+1;