(main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -659,7 +659,13 @@ main(int argc, char **argv)
|
||||
set_progname(argv[0]);
|
||||
|
||||
#ifdef KRB5
|
||||
krb5_init_context(&context);
|
||||
{
|
||||
krb5_error_code ret;
|
||||
|
||||
ret = krb5_init_context(&context);
|
||||
if (ret)
|
||||
errx (1, "krb5_init_context failed: %d", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
openlog("login", LOG_ODELAY, LOG_AUTH);
|
||||
|
Reference in New Issue
Block a user