]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/daemon.c
ITS#8845 Recognise control-exop compatibility
[openldap] / servers / slapd / daemon.c
index eb5aa62103537a914e930d52ba975561c21e9840..066c8529ff03c11aeb9cd01b09c809a839274caf 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2017 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
  * Portions Copyright 2007 by Howard Chu, Symas Corporation.
  * All rights reserved.
  *
@@ -2977,10 +2977,11 @@ loop:
                                }
 
 #ifdef HAVE_KQUEUE
-                               if ( SLAP_EVENT_IS_WRITE( tid, i ) ) {
+                               if ( SLAP_EVENT_IS_WRITE( tid, i ) )
 #else
-                               if ( SLAP_EVENT_IS_WRITE( i ) ) {
+                               if ( SLAP_EVENT_IS_WRITE( i ) )
 #endif  /* HAVE_KQUEUE */
+                               {
                                        Debug( LDAP_DEBUG_CONNS,
                                                "daemon: write active on %d\n",
                                                fd, 0, 0 );
@@ -3000,10 +3001,11 @@ loop:
                                }
                                /* If event is a read */
 #ifdef HAVE_KQUEUE
-                               if ( SLAP_EVENT_IS_READ( tid, i )) {
+                               if ( SLAP_EVENT_IS_READ( tid, i ))
 #else
-                               if ( SLAP_EVENT_IS_READ( i )) {
+                               if ( SLAP_EVENT_IS_READ( i ))
 #endif /* HAVE_KQUEUE */
+                               {
                                        r = 1;
                                        Debug( LDAP_DEBUG_CONNS,
                                                "daemon: read active on %d\n",