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/sserver/sserver.c | |
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/sserver/sserver.c')
-rw-r--r-- | src/appl/sample/sserver/sserver.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/appl/sample/sserver/sserver.c b/src/appl/sample/sserver/sserver.c index 474a31ba98..78b291d363 100644 --- a/src/appl/sample/sserver/sserver.c +++ b/src/appl/sample/sserver/sserver.c @@ -89,8 +89,11 @@ main(argc, argv) progname = *argv; - 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); + } /* open a log connection */ openlog("sserver", 0, LOG_DAEMON); |