blob: 761aaa94531ea4a54e636ebc09363f3e2f3c9ad0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ak,v 1.1 2002/10/30 02:13:47 elric Exp $
--- src/osdep/unix/ckp_gss.c.orig Tue Oct 29 13:20:28 2002
+++ src/osdep/unix/ckp_gss.c Tue Oct 29 13:20:51 2002
@@ -32,9 +32,12 @@
krb5_timestamp now;
krb5_principal client,server;
krb5_creds crd;
+ krb5_error error;
struct passwd *ret = NIL;
if (*pass) { /* only if password non-empty */
- krb5_init_context (&ctx); /* get a context context */
+ erorr = krb5_init_context (&ctx); /* get a context context */
+ if (error)
+ return NIL;
krb5_init_ets (ctx);
/* get time, client and server principals */
if (!krb5_timeofday (ctx,&now) &&
|