summaryrefslogtreecommitdiff
path: root/mail/imap-uw/patches
diff options
context:
space:
mode:
authorelric <elric>2002-10-30 02:13:47 +0000
committerelric <elric>2002-10-30 02:13:47 +0000
commitb80c4c0a7d0442abaa23df3432e5be150338f0bd (patch)
tree2e10dd4b2828a52bfc3e7b96fd03c88248ed78b7 /mail/imap-uw/patches
parent2abe7ad26fed3c2586afa9fd72eda2e46bec0327 (diff)
downloadpkgsrc-b80c4c0a7d0442abaa23df3432e5be150338f0bd.tar.gz
Fail if krb5_init_context fails in ckp_gss.c.
Diffstat (limited to 'mail/imap-uw/patches')
-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) &&