(proto): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9434 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997 - 1999 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -63,7 +63,7 @@ proto (int sock, const char *hostname, const char *service)
|
||||
|
||||
status = krb5_init_context(&context);
|
||||
if (status)
|
||||
krb5_err(context, 1, status, "krb5_init_context");
|
||||
errx(1, "krb5_init_context failed: %d", status);
|
||||
|
||||
status = krb5_cc_default (context, &ccache);
|
||||
if (status)
|
||||
|
Reference in New Issue
Block a user