]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/filterindex.c
Fix -USLAPD_RLOOKUPS
[openldap] / servers / slapd / back-ldbm / filterindex.c
index 2c32d50d9fe734ee4000a84b8577dd7a62100f0b..65842a34633393bfd4ee3b5a92c3a134464b7a67 100644 (file)
@@ -345,6 +345,11 @@ substring_comp_candidates(
                        idl_free( tmp );
                        idl_free( tmp2 );
                }
+
+               /* break if no candidates */
+               if( idl == NULL ) {
+                       break;
+               }
        }
 
        Debug( LDAP_DEBUG_TRACE, "<= substring_comp_candidates %ld\n",