summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/auth/sia/sia.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/auth/sia/sia.c')
-rw-r--r--crypto/heimdal/lib/auth/sia/sia.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/auth/sia/sia.c b/crypto/heimdal/lib/auth/sia/sia.c
index 01e2ac0..0894591 100644
--- a/crypto/heimdal/lib/auth/sia/sia.c
+++ b/crypto/heimdal/lib/auth/sia/sia.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995-1999 Kungliga Tekniska Högskolan
+ * Copyright (c) 1995-2000 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.33 1999/12/20 09:46:44 joda Exp $");
+RCSID("$Id: sia.c,v 1.34 2000/12/31 07:57:46 assar Exp $");
int
siad_init(void)
@@ -51,13 +51,17 @@ 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"));
if(s == NULL)
return SIADFAIL;
memset(s, 0, sizeof(*s));
#ifdef SIA_KRB5
- krb5_init_context(&s->context);
+ ret = krb5_init_context(&s->context);
+ if (ret)
+ return SIADFAIL;
#endif
entity->mech[pkgind] = (int*)s;
return SIADSUCCESS;
OpenPOWER on IntegriCloud