$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) &&
