]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/limits.c
Don't bother setting up threads if there are no indexed attrs
[openldap] / servers / slapd / limits.c
index 053efd90bd3116dd19bb942dd7896f7fe5277166..ef26010606c903621489aaa9215a57e115a68092 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -1233,6 +1233,9 @@ limits_check( Operation *op, SlapReply *rs )
                                                return -1;
                                        }
                                        op->ors_slimit = slimit;
+
+                               } else if ( slimit == 0 ) {
+                                       op->ors_slimit = 0;
                                }
 
                        } else {