]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/filterindex.c
Apply devel IDL fixes...
[openldap] / servers / slapd / back-ldbm / filterindex.c
index 5ad17dc0e157bb8d0e9900fe6b308ced87c2f95f..2b304d104a63ca51d8363ac39ea41d17c11dc416 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 %lu\n",