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/sample/sclient | |
| parent | b7d0fdf7d891d191918de379194842d3f9837d48 (diff) | |
| download | krb5-4bbce906813693aa821936c237b082bb51f0cb48.tar.gz krb5-4bbce906813693aa821936c237b082bb51f0cb48.tar.xz krb5-4bbce906813693aa821936c237b082bb51f0cb48.zip | |
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/sample/sclient')
| -rw-r--r-- | src/appl/sample/sclient/ChangeLog | 6 | ||||
| -rw-r--r-- | src/appl/sample/sclient/sclient.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/appl/sample/sclient/ChangeLog b/src/appl/sample/sclient/ChangeLog index 9479f2dda..a87734fb7 100644 --- a/src/appl/sample/sclient/ChangeLog +++ b/src/appl/sample/sclient/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 7 15:25:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> + + * sclient.c (argv): Check the error return from + krb5_init_context(), and print an error message if + necessary. + Tue Sep 10 14:09:01 1996 Tom Yu <tlyu@mit.edu> * sclient.M: remove ".so man1/header.doc" diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index 94e06766b..f4f57af5b 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -73,8 +73,11 @@ char *argv[]; exit(1); } - 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); + } (void) signal(SIGPIPE, SIG_IGN); if (!valid_cksumtype(CKSUMTYPE_CRC32)) { |
