diff options
author | elric <elric> | 2002-10-30 02:13:47 +0000 |
---|---|---|
committer | elric <elric> | 2002-10-30 02:13:47 +0000 |
commit | b643d6163b6c65f0245dd62f2099c568d3ef67c0 (patch) | |
tree | 2e10dd4b2828a52bfc3e7b96fd03c88248ed78b7 /mail/imap-uw/patches | |
parent | 1a4aeb0e202266bdb94b7803ea3f99b6e022b0be (diff) | |
download | pkgsrc-b643d6163b6c65f0245dd62f2099c568d3ef67c0.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-ak | 18 |
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) && |