diff options
author | Theodore Tso <tytso@mit.edu> | 1996-11-08 22:28:43 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1996-11-08 22:28:43 +0000 |
commit | 4bbce906813693aa821936c237b082bb51f0cb48 (patch) | |
tree | 04fa6428098dbba30cf15e4a8f647d068ca3086e /src/appl/simple/client/sim_client.c | |
parent | b7d0fdf7d891d191918de379194842d3f9837d48 (diff) | |
download | krb5-4bbce906813693aa821936c237b082bb51f0cb48.zip krb5-4bbce906813693aa821936c237b082bb51f0cb48.tar.gz krb5-4bbce906813693aa821936c237b082bb51f0cb48.tar.bz2 |
Check the error return from krb5_init_context(), and print an error
message if necessary.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9345 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/simple/client/sim_client.c')
-rw-r--r-- | src/appl/simple/client/sim_client.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index ca966c1..9def260 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -95,8 +95,11 @@ main(argc, argv) krb5_auth_context auth_context = NULL; krb5_replay_data replaydata; - krb5_init_context(&context); - krb5_init_ets(context); + retval = krb5_init_context(&context); + if (retval) { + com_err(argv[0], retval, "while initializing krb5"); + exit(1); + } progname = argv[0]; |