diff src/eldap.h @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 7347b34c275b
children 74fd4e045ea6
line wrap: on
line diff
--- a/src/eldap.h	Mon Aug 13 11:01:58 2007 +0200
+++ b/src/eldap.h	Mon Aug 13 11:03:08 2007 +0200
@@ -37,6 +37,8 @@
   LDAP *ld;
   /* Name of the host we connected to */
   Lisp_Object host;
+  /* Status of the LDAP connection.  */
+  int livep;
 };
 
 
@@ -50,7 +52,7 @@
 
 #define CHECK_LIVE_LDAP(ldap) do {					\
   CHECK_LDAP (ldap);							\
-  if (!XLDAP (ldap)->ld)						\
+  if (!XLDAP (ldap)->livep)						\
     signal_simple_error ("Attempting to access closed LDAP connection",	\
                          ldap);						\
 } while (0)