]> git.sur5r.net Git - openldap/commitdiff
Add REG_NOSUB as we only need matched results.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 24 Aug 1999 04:33:34 +0000 (04:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 24 Aug 1999 04:33:34 +0000 (04:33 +0000)
servers/slapd/filterentry.c

index f65c8472a80ff7fc1ec022d76715f3e9ae5f71c2..a6baf16f1a3ae8797e96b0b04ddf499b9a2287f7 100644 (file)
@@ -396,7 +396,7 @@ test_substring_filter(
        /* compile the regex */
        Debug( LDAP_DEBUG_FILTER, "test_substring_filter: regcomp pat: %s\n",
                pat, 0, 0 );
-       if ((rc = regcomp(&re, pat, REG_EXTENDED))) {
+       if ((rc = regcomp(&re, pat, REG_EXTENDED|REG_NOSUB))) {
                char error[512];
 
                regerror(rc, &re, error, sizeof(error));