diff options
Diffstat (limited to 'crypto/heimdal/lib/auth/sia/sia.c')
-rw-r--r-- | crypto/heimdal/lib/auth/sia/sia.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crypto/heimdal/lib/auth/sia/sia.c b/crypto/heimdal/lib/auth/sia/sia.c index 6092a88..d2de063 100644 --- a/crypto/heimdal/lib/auth/sia/sia.c +++ b/crypto/heimdal/lib/auth/sia/sia.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2000 Kungliga Tekniska Högskolan + * Copyright (c) 1995-2001 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -33,7 +33,7 @@ #include "sia_locl.h" -RCSID("$Id: sia.c,v 1.35 2001/02/20 01:44:53 assar Exp $"); +RCSID("$Id: sia.c,v 1.36 2001/09/13 01:19:14 assar Exp $"); int siad_init(void) @@ -51,7 +51,6 @@ siad_chk_invoker(void) int siad_ses_init(SIAENTITY *entity, int pkgind) { - krb5_error_code ret; struct state *s = malloc(sizeof(*s)); SIA_DEBUG(("DEBUG", "siad_ses_init")); @@ -59,9 +58,12 @@ siad_ses_init(SIAENTITY *entity, int pkgind) return SIADFAIL; memset(s, 0, sizeof(*s)); #ifdef SIA_KRB5 - ret = krb5_init_context(&s->context); - if (ret) + { + krb5_error_code ret; + ret = krb5_init_context(&s->context); + if (ret) return SIADFAIL; + } #endif entity->mech[pkgind] = (int*)s; return SIADSUCCESS; |