1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ak,v 1.3 2007/08/03 17:03:30 obache Exp $
--- src/osdep/unix/ckp_gss.c.orig 2007-01-16 23:26:49.000000000 +0000
+++ src/osdep/unix/ckp_gss.c
@@ -38,6 +38,7 @@ struct passwd *checkpw (struct passwd *p
{
char svrnam[MAILTMPLEN],cltnam[MAILTMPLEN];
krb5_context ctx;
+ krb5_error error;
krb5_timestamp now;
krb5_principal service;
krb5_ccache ccache;
@@ -54,7 +55,9 @@ struct passwd *checkpw (struct passwd *p
/* make client name with principal */
sprintf (cltnam,"%.80s/%.80s",pw->pw_name,
(char *) mail_parameters (NIL,GET_SERVICENAME,NIL));
- krb5_init_context (&ctx); /* get a context */
+ error = krb5_init_context (&ctx); /* get a context */
+ if (error)
+ return NIL;
/* get time, client and server principals */
if (!krb5_timeofday (ctx,&now) &&
/* Normally, kerb_cp_svr_name (defined/set in env_unix.c) is NIL, so
|