[1812] in Moira Commits

home help back first fref pref prev next nref lref last post

/svn/moira r3959 - trunk/moira/incremental/ldap

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Wed Jan 6 00:03:19 2010

Date: Wed, 6 Jan 2010 00:03:17 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>
Message-Id: <201001060503.o0653H6B007728@drugstore.mit.edu>
To: moira-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: zacheiss
Date: 2010-01-06 00:03:16 -0500 (Wed, 06 Jan 2010)
New Revision: 3959

Modified:
   trunk/moira/incremental/ldap/winad.c
Log:
Check if ccache is non-NULL before using it.

Modified: trunk/moira/incremental/ldap/winad.c
===================================================================
--- trunk/moira/incremental/ldap/winad.c	2010-01-05 21:27:04 UTC (rev 3958)
+++ trunk/moira/incremental/ldap/winad.c	2010-01-06 05:03:16 UTC (rev 3959)
@@ -9565,7 +9565,8 @@
   auth_context = NULL;
   if (context != NULL)
     {
-      krb5_cc_close(context, ccache);
+      if (ccache)
+	krb5_cc_close(context, ccache);
       krb5_free_context(context);
     }
   close(kdc_socket);


home help back first fref pref prev next nref lref last post