(gssapi_krb5_init): add comment

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9439 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-12-31 07:58:37 +00:00
parent 05f2ceeb19
commit 25b2784417
2 changed files with 14 additions and 6 deletions

View File

@@ -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). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -38,6 +38,10 @@ RCSID("$Id$");
void void
gssapi_krb5_init (void) gssapi_krb5_init (void)
{ {
if(gssapi_krb5_context == NULL) krb5_error_code ret;
krb5_init_context (&gssapi_krb5_context);
if(gssapi_krb5_context == NULL) {
ret = krb5_init_context (&gssapi_krb5_context);
/* and what do we do when that failed? */
}
} }

View File

@@ -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). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -38,6 +38,10 @@ RCSID("$Id$");
void void
gssapi_krb5_init (void) gssapi_krb5_init (void)
{ {
if(gssapi_krb5_context == NULL) krb5_error_code ret;
krb5_init_context (&gssapi_krb5_context);
if(gssapi_krb5_context == NULL) {
ret = krb5_init_context (&gssapi_krb5_context);
/* and what do we do when that failed? */
}
} }