summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorelric <elric@pkgsrc.org>2002-10-30 02:13:47 +0000
committerelric <elric@pkgsrc.org>2002-10-30 02:13:47 +0000
commit7aaefe8321c12d4efd3c9238501458daf42e6839 (patch)
tree2e10dd4b2828a52bfc3e7b96fd03c88248ed78b7 /mail
parent2850ba98f61977a2406bab1e0f263eae385a9ff8 (diff)
downloadpkgsrc-7aaefe8321c12d4efd3c9238501458daf42e6839.tar.gz
Fail if krb5_init_context fails in ckp_gss.c.
Diffstat (limited to 'mail')
-rw-r--r--mail/imap-uw/patches/patch-ak18
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/imap-uw/patches/patch-ak b/mail/imap-uw/patches/patch-ak
new file mode 100644
index 00000000000..761aaa94531
--- /dev/null
+++ b/mail/imap-uw/patches/patch-ak
@@ -0,0 +1,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) &&