From: Kurt Zeilenga Date: Tue, 24 Aug 1999 04:33:34 +0000 (+0000) Subject: Add REG_NOSUB as we only need matched results. X-Git-Tag: TWEB_OL_BASE~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46802eee0363640a3542e32eb69b1809db59d8ae;p=openldap Add REG_NOSUB as we only need matched results. --- diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index f65c8472a8..a6baf16f1a 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -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));