From 7aaefe8321c12d4efd3c9238501458daf42e6839 Mon Sep 17 00:00:00 2001 From: elric Date: Wed, 30 Oct 2002 02:13:47 +0000 Subject: Fail if krb5_init_context fails in ckp_gss.c. --- mail/imap-uw/patches/patch-ak | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mail/imap-uw/patches/patch-ak (limited to 'mail') 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) && -- cgit v1.2.3