From: Theodore Tso Date: Thu, 7 Nov 1996 17:02:40 +0000 (+0000) Subject: Check the return code from krb5_init_context, and print an error X-Git-Tag: krb5-1.0-freeze1~111 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b457f3a50ccfc079a4323397213049e709ecd989;p=krb5.git Check the return code from krb5_init_context, and print an error message if appropriate. No longer call krb5_init_ets(), as it's no longer necessary. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9314 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog index 33d6bbec0..c3bbbeb3f 100644 --- a/src/clients/kinit/ChangeLog +++ b/src/clients/kinit/ChangeLog @@ -1,3 +1,9 @@ +Wed Nov 6 09:31:35 1996 Theodore Y. Ts'o + + * kinit.c (main): Check the return code from krb5_init_context, + and print an error message if appropriate. No longer call + krb5_init_ets(), as it's no longer necessary. + Tue Sep 10 14:13:52 1996 Tom Yu * kinit.M: remove ".so man1/header.doc" diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index df8d449e4..42eabf612 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -80,8 +80,11 @@ main(argc, argv) int pwsize; char password[255], *client_name, prompt[255]; - krb5_init_context(&kcontext); - krb5_init_ets(kcontext); + code = krb5_init_context(&kcontext); + if (code) { + com_err(argv[0], code, "while initializing krb5"); + exit(1); + } if ((code = krb5_timeofday(kcontext, &now))) { com_err(argv[0], code, "while getting time of day");