(kerberos5_init): check krb5_init_context for success
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9432 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -145,9 +145,12 @@ Data(Authenticator *ap, int type, void *d, int c)
|
||||
int
|
||||
kerberos5_init(Authenticator *ap, int server)
|
||||
{
|
||||
krb5_init_context(&context);
|
||||
krb5_error_code ret;
|
||||
|
||||
ret = krb5_init_context(&context);
|
||||
if (ret)
|
||||
return 0;
|
||||
if (server) {
|
||||
krb5_error_code ret;
|
||||
krb5_keytab kt;
|
||||
krb5_kt_cursor cursor;
|
||||
|
||||
|
Reference in New Issue
Block a user